ext/ffmpeg/gstffmpegdemux.c: Don't return FALSE for the LATENCY event but instead forward it upstream. Fixes #482946.

Original commit message from CVS:
Patch by: Yann Gilquin <yann dot gilquin at purplelabs dot com>
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_src_event):
Don't return FALSE for the LATENCY event but instead forward it
upstream. Fixes #482946.
This commit is contained in:
Yann Gilquin 2007-10-05 15:03:21 +00:00 committed by Wim Taymans
parent 033751e57e
commit 808f080279
2 changed files with 15 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2007-10-05 Wim Taymans <wim.taymans@gmail.com>
Patch by: Yann Gilquin <yann dot gilquin at purplelabs dot com>
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_src_event):
Don't return FALSE for the LATENCY event but instead forward it
upstream. Fixes #482946.
2007-10-03 Stefan Kost <ensonic@users.sf.net>
* tests/check/generic/libavcodec-locking.c:

View file

@ -591,14 +591,20 @@ gst_ffmpegdemux_src_event (GstPad * pad, GstEvent * event)
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_SEEK:
res = gst_ffmpegdemux_perform_seek (demux, event);
gst_event_unref (event);
break;
case GST_EVENT_LATENCY:
res = gst_pad_push_event (demux->sinkpad, event);
break;
case GST_EVENT_NAVIGATION:
case GST_EVENT_QOS:
default:
res = FALSE;
gst_event_unref (event);
break;
}
gst_object_unref (demux);
gst_event_unref (event);
return res;
}