mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
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
This commit is contained in:
parent
67c2b93106
commit
14978d9229
1 changed files with 2 additions and 15 deletions
|
@ -1220,7 +1220,7 @@ static gboolean
|
||||||
gst_dvdemux_handle_src_event (GstPad * pad, GstObject * parent,
|
gst_dvdemux_handle_src_event (GstPad * pad, GstObject * parent,
|
||||||
GstEvent * event)
|
GstEvent * event)
|
||||||
{
|
{
|
||||||
gboolean res = TRUE;
|
gboolean res = FALSE;
|
||||||
GstDVDemux *dvdemux;
|
GstDVDemux *dvdemux;
|
||||||
|
|
||||||
dvdemux = GST_DVDEMUX (parent);
|
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 */
|
/* seek handler is installed based on scheduling mode */
|
||||||
if (dvdemux->seek_handler)
|
if (dvdemux->seek_handler)
|
||||||
res = dvdemux->seek_handler (dvdemux, pad, event);
|
res = dvdemux->seek_handler (dvdemux, pad, event);
|
||||||
else
|
gst_event_unref (event);
|
||||||
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;
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
res = gst_pad_push_event (dvdemux->sinkpad, event);
|
res = gst_pad_push_event (dvdemux->sinkpad, event);
|
||||||
event = NULL;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (event)
|
|
||||||
gst_event_unref (event);
|
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue