Benjamin Larsson <[EMAIL PROTECTED]> added the comment: Sebastian Jansson wrote: > New submission from Sebastian Jansson <[EMAIL PROTECTED]>: > > I'm using ffmpeg as a lib to receive an udp stream via multicast. That works > fine when there is a stream. But when I try to connect to an unavailable > ipadress:port it just locks and wait for an connection. >
Same effect under Linux: gdb --args ffplay_g udp://235.2.2.2:5000 GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu"... (gdb) run Starting program: /home/banan/soc/aacenc/ffmpeg/ffplay_g udp://235.2.2.2:5000 [Thread debugging using libthread_db enabled] FFplay version SVN-r14260, Copyright (c) 2003-2008 Fabrice Bellard, et al. configuration: libavutil version: 49.7.0 libavcodec version: 51.60.0 libavformat version: 52.17.0 libavdevice version: 52.0.0 built on Jul 17 2008 10:41:51, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu7) [New Thread 0xb7ba26b0 (LWP 12387)] [New Thread 0xb78abb90 (LWP 12390)] [New Thread 0xb7023b90 (LWP 12391)] [Locked state, I pressed Ctrl-C] Program received signal SIGINT, Interrupt. [Switching to Thread 0xb7ba26b0 (LWP 12387)] 0xb7f40402 in __kernel_vsyscall () (gdb) bt #0 0xb7f40402 in __kernel_vsyscall () #1 0xb7d97cb6 in nanosleep () from /lib/tls/i686/cmov/libc.so.6 #2 0xb7eae788 in SDL_Delay () from /usr/lib/libSDL-1.2.so.0 #3 0xb7e5c09b in SDL_WaitEvent () from /usr/lib/libSDL-1.2.so.0 #4 0x08061aaf in main (argc=0, argv=0x1bf0bd) at ffplay.c:2246 (gdb) quit The program is running. Exit anyway? (y or n) y I think the bt is from the wrong thread. MvH Benjamin Larsson ---------- title: ffmpeg stalls when trying to play udp stream from an unavaible adress. -> ffmpeg stalls when trying to play udp stream from an unavaible adress. ______________________________________________________ FFmpeg issue tracker <[EMAIL PROTECTED]> <https://roundup.mplayerhq.hu/roundup/ffmpeg/issue539> ______________________________________________________
