From: David Schleef Date: Fri, 14 May 2004 19:26:35 +0000 (+0000) Subject: ext/esd/esdsink.c: Fix crash when ESD is killed while we're playing. X-Git-Tag: BRANCH-GSTREAMER-0_8-ROOT~1088 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63d2359147f38f65f2f92522ffb0db0f064cb924;p=platform%2Fupstream%2Fgst-plugins-good.git ext/esd/esdsink.c: Fix crash when ESD is killed while we're playing. Original commit message from CVS: * ext/esd/esdsink.c: (gst_esdsink_chain): Fix crash when ESD is killed while we're playing. * gst/qtdemux/qtdemux.c: (qtdemux_parse): call gst_element_no_more_pads(). --- diff --git a/ChangeLog b/ChangeLog index 5327fdc..913ba5a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-05-14 David Schleef + + * ext/esd/esdsink.c: (gst_esdsink_chain): Fix crash when ESD + is killed while we're playing. + * gst/qtdemux/qtdemux.c: (qtdemux_parse): call + gst_element_no_more_pads(). + 2004-05-14 Stephane Loeuillet * gst-libs/gst/riff/riff-read.c : diff --git a/ext/esd/esdsink.c b/ext/esd/esdsink.c index c6c5be4..abb0b9b 100644 --- a/ext/esd/esdsink.c +++ b/ext/esd/esdsink.c @@ -296,7 +296,10 @@ gst_esdsink_chain (GstPad * pad, GstData * _data) if (errno == EINTR) { goto done; } - g_assert_not_reached (); + /* connection closed? */ + GST_ELEMENT_ERROR (esdsink, RESOURCE, WRITE, (NULL), + ("communication with ESD failed")); + return; } to_write -= done; diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index e76c13f..4afdf0c 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -1722,6 +1722,7 @@ qtdemux_parse_tree (GstQTDemux * qtdemux) while ((trak = qtdemux_tree_get_sibling_by_type (trak, FOURCC_trak)) != NULL) qtdemux_parse_trak (qtdemux, trak); + gst_element_no_more_pads (GST_ELEMENT (qtdemux)); } static void