diff options
author | Antoine Tremblay <hexa00@gmail.com> | 2006-09-29 08:09:24 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2006-09-29 08:09:24 +0000 |
commit | 1a86fdc6e370be3eae6592176f20d919dd1d66d2 (patch) | |
tree | c275e980ac9994ed94aff4e9715fef7e579e0222 /gst/udp | |
parent | 210e3a8e67e7ab5b225d45d99e2a850a43aff843 (diff) |
gst/udp/gstudpsrc.c: Fix possible infinite loop when shutting down, a read can also return 0 to indicate no more mess...
Original commit message from CVS:
Patch by: Antoine Tremblay <hexa00 at gmail dot com>
* gst/udp/gstudpsrc.c: (gst_udpsrc_create):
Fix possible infinite loop when shutting down, a read can also return
0 to indicate no more messages are available. Fixes #358156.
Diffstat (limited to 'gst/udp')
-rw-r--r-- | gst/udp/gstudpsrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c index 85ad7c68..f7be0fd0 100644 --- a/gst/udp/gstudpsrc.c +++ b/gst/udp/gstudpsrc.c @@ -328,7 +328,7 @@ gst_udpsrc_create (GstPushSrc * psrc, GstBuffer ** buf) int res; READ_COMMAND (udpsrc, command, res); - if (res < 0) { + if (res <= 0) { GST_LOG_OBJECT (udpsrc, "no more commands"); /* no more commands */ break; |