Commit 1a86fdc6 authored by Antoine Tremblay's avatar Antoine Tremblay Committed by Wim Taymans
Browse files

gst/udp/gstudpsrc.c: Fix possible infinite loop when shutting down, a read can...

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.
parent 210e3a8e
2006-09-29 Wim Taymans <wim@fluendo.com>
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.
2006-09-25 Wim Taymans <wim@fluendo.com>
* gst/autodetect/gstautoaudiosink.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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment