diff options
author | Edward Hervey <edward@centricular.com> | 2016-06-23 15:17:36 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2016-07-08 15:00:27 +0200 |
commit | 14978d9229c2c0496b98ba87b0103da430e0b7a0 (patch) | |
tree | 8adeb07c43ad2ad88e51f76ccbab62081e2cc421 /ext | |
parent | 67c2b93106fb5c4faef0897413468cf0fc1ddef8 (diff) |
dvdemux: Let upstream events go through upstream
There's no real reason to avoid sending QOS/NAVIGATION events upstrea.
Some elements might want to have that information.
Also remove downstream-only CAPS event handling and minimize code
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dv/gstdvdemux.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/ext/dv/gstdvdemux.c b/ext/dv/gstdvdemux.c index a259cc18f..ca7491528 100644 --- a/ext/dv/gstdvdemux.c +++ b/ext/dv/gstdvdemux.c @@ -1220,7 +1220,7 @@ static gboolean gst_dvdemux_handle_src_event (GstPad * pad, GstObject * parent, GstEvent * event) { - gboolean res = TRUE; + gboolean res = FALSE; GstDVDemux *dvdemux; dvdemux = GST_DVDEMUX (parent); @@ -1230,25 +1230,12 @@ gst_dvdemux_handle_src_event (GstPad * pad, GstObject * parent, /* seek handler is installed based on scheduling mode */ if (dvdemux->seek_handler) res = dvdemux->seek_handler (dvdemux, pad, event); - else - res = FALSE; - break; - case GST_EVENT_QOS: - /* we can't really (yet) do QoS */ - res = FALSE; - break; - case GST_EVENT_NAVIGATION: - case GST_EVENT_CAPS: - /* no navigation or caps either... */ - res = FALSE; + gst_event_unref (event); break; default: res = gst_pad_push_event (dvdemux->sinkpad, event); - event = NULL; break; } - if (event) - gst_event_unref (event); return res; } |