From: Michael Meeks Date: Tue, 20 May 2008 17:27:35 +0000 (+0000) Subject: ext/esd/esdsink.c: When we post an error, we must return -1 to let the parent know... X-Git-Tag: 1.19.3~509^2~11262 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9775592e388cea7fe8f100001f6e81a99fbbe01;p=platform%2Fupstream%2Fgstreamer.git ext/esd/esdsink.c: When we post an error, we must return -1 to let the parent know that we cannot write the segment e... Original commit message from CVS: * ext/esd/esdsink.c: (gst_esdsink_write): When we post an error, we must return -1 to let the parent know that we cannot write the segment else it will loop and continue to call us again forever. Patch by Michael Meeks. --- diff --git a/ChangeLog b/ChangeLog index 6501c7f..06cdb90 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-05-20 Wim Taymans + + * ext/esd/esdsink.c: (gst_esdsink_write): + When we post an error, we must return -1 to let the parent know that we + cannot write the segment else it will loop and continue to call us again + forever. Patch by Michael Meeks. + 2008-05-20 Stefan Kost * gst/videomixer/videomixer.c: diff --git a/ext/esd/esdsink.c b/ext/esd/esdsink.c index d46af07..ed34d79 100644 --- a/ext/esd/esdsink.c +++ b/ext/esd/esdsink.c @@ -413,7 +413,7 @@ write_error: { GST_ELEMENT_ERROR (esdsink, RESOURCE, WRITE, ("Failed to write data to the esound daemon"), GST_ERROR_SYSTEM); - return 0; + return -1; } }