From: <wt...@ke...> - 2006-09-29 08:09:38
|
CVS Root: /cvs/gstreamer Module: gst-plugins-good Changes by: wtay Date: Fri Sep 29 2006 08:09:37 UTC Log message: 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. Modified files: . : ChangeLog gst/udp : gstudpsrc.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/ChangeLog.diff?r1=1.2566&r2=1.2567 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/gst/udp/gstudpsrc.c.diff?r1=1.60&r2=1.61 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-plugins-good/ChangeLog,v retrieving revision 1.2566 retrieving revision 1.2567 diff -u -d -r1.2566 -r1.2567 --- ChangeLog 25 Sep 2006 13:55:44 -0000 1.2566 +++ ChangeLog 29 Sep 2006 08:09:24 -0000 1.2567 @@ -1,3 +1,11 @@ +2006-09-29 Wim Taymans <wi...@fl...> + + 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 <wi...@fl...> * gst/autodetect/gstautoaudiosink.c: Index: gstudpsrc.c RCS file: /cvs/gstreamer/gst-plugins-good/gst/udp/gstudpsrc.c,v retrieving revision 1.60 retrieving revision 1.61 diff -u -d -r1.60 -r1.61 --- gstudpsrc.c 25 Sep 2006 11:47:42 -0000 1.60 +++ gstudpsrc.c 29 Sep 2006 08:09:24 -0000 1.61 @@ -328,7 +328,7 @@ int res; READ_COMMAND (udpsrc, command, res); - if (res < 0) { + if (res <= 0) { GST_LOG_OBJECT (udpsrc, "no more commands"); /* no more commands */ break; |