summaryrefslogtreecommitdiffstats
path: root/ext/esd/esdsink.c
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2004-05-14 19:26:35 +0000
committerDavid Schleef <ds@schleef.org>2004-05-14 19:26:35 +0000
commit63d2359147f38f65f2f92522ffb0db0f064cb924 (patch)
tree7d6dee44d5ed2464a12420b426272b1333cc5fa3 /ext/esd/esdsink.c
parent5fa01401cc64b059324423d0168892ed34beac14 (diff)
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().
Diffstat (limited to 'ext/esd/esdsink.c')
-rw-r--r--ext/esd/esdsink.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/esd/esdsink.c b/ext/esd/esdsink.c
index c6c5be4d..abb0b9b0 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;