tsparse: Ensure segment events are forwarded
We skip them for tsdemux though (recreated later) Fixes #690949
This commit is contained in:
parent
d7bcf7206f
commit
ca3146a2cd
@ -1348,7 +1348,7 @@ mpegts_base_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||||||
base->packetizer->calculate_offset = TRUE;
|
base->packetizer->calculate_offset = TRUE;
|
||||||
base->packetizer->calculate_skew = FALSE;
|
base->packetizer->calculate_skew = FALSE;
|
||||||
}
|
}
|
||||||
gst_event_unref (event);
|
res = GST_MPEGTS_BASE_GET_CLASS (base)->push_event (base, event);
|
||||||
break;
|
break;
|
||||||
case GST_EVENT_STREAM_START:
|
case GST_EVENT_STREAM_START:
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
|
@ -580,6 +580,12 @@ push_event (MpegTSBase * base, GstEvent * event)
|
|||||||
GstTSDemux *demux = (GstTSDemux *) base;
|
GstTSDemux *demux = (GstTSDemux *) base;
|
||||||
GList *tmp;
|
GList *tmp;
|
||||||
|
|
||||||
|
if (GST_EVENT_TYPE (event) == GST_EVENT_SEGMENT) {
|
||||||
|
GST_DEBUG_OBJECT (base, "Ignoring segment event (recreated later)");
|
||||||
|
gst_event_unref (event);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
if (G_UNLIKELY (demux->program == NULL)) {
|
if (G_UNLIKELY (demux->program == NULL)) {
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user