summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-05-30 19:08:04 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-05-30 19:08:04 +0000
commit9ebe4d23952ababd3031dc7f72ea693c6afe2a64 (patch)
treef8436115f497b73f9dd28bd5512e05b290b21760 /gst
parentc5b642c13bb72ca36d33543bc843136edb41e746 (diff)
downloadgst-plugins-bad-9ebe4d23952ababd3031dc7f72ea693c6afe2a64.tar.gz
gst-plugins-bad-9ebe4d23952ababd3031dc7f72ea693c6afe2a64.tar.bz2
gst-plugins-bad-9ebe4d23952ababd3031dc7f72ea693c6afe2a64.zip
Don't crash on events.
Original commit message from CVS: Don't crash on events.
Diffstat (limited to 'gst')
-rw-r--r--gst/speed/gstspeed.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/speed/gstspeed.c b/gst/speed/gstspeed.c
index 38b83a57..d943b608 100644
--- a/gst/speed/gstspeed.c
+++ b/gst/speed/gstspeed.c
@@ -255,6 +255,10 @@ speed_loop (GstElement *element)
speed = filter->speed;
in = gst_pad_pull(filter->sinkpad);
+ if (GST_IS_EVENT (in)) {
+ gst_pad_event_default (filter->sinkpad, GST_EVENT (in));
+ return;
+ }
while (GST_IS_EVENT (in)) {
gst_pad_event_default (filter->srcpad, GST_EVENT (in));