mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
Don't crash on events.
Original commit message from CVS: Don't crash on events.
This commit is contained in:
parent
c5b642c13b
commit
9ebe4d2395
1 changed files with 4 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue