mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 07:28:53 +00:00
mpegpsdemux: push stream start event
This commit is contained in:
parent
b6719fe0e3
commit
d7bcf7206f
1 changed files with 7 additions and 0 deletions
|
@ -349,6 +349,7 @@ gst_flups_demux_create_stream (GstFluPSDemux * demux, gint id, gint stream_type)
|
||||||
GstFluPSDemuxClass *klass = GST_FLUPS_DEMUX_GET_CLASS (demux);
|
GstFluPSDemuxClass *klass = GST_FLUPS_DEMUX_GET_CLASS (demux);
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
GstClockTime threshold = SEGMENT_THRESHOLD;
|
GstClockTime threshold = SEGMENT_THRESHOLD;
|
||||||
|
gchar *stream_id;
|
||||||
|
|
||||||
name = NULL;
|
name = NULL;
|
||||||
template = NULL;
|
template = NULL;
|
||||||
|
@ -468,6 +469,12 @@ gst_flups_demux_create_stream (GstFluPSDemux * demux, gint id, gint stream_type)
|
||||||
/* needed for set_caps to work */
|
/* needed for set_caps to work */
|
||||||
gst_pad_set_active (stream->pad, TRUE);
|
gst_pad_set_active (stream->pad, TRUE);
|
||||||
|
|
||||||
|
stream_id =
|
||||||
|
gst_pad_create_stream_id_printf (stream->pad, GST_ELEMENT_CAST (demux),
|
||||||
|
"%02x", id);
|
||||||
|
gst_pad_push_event (stream->pad, gst_event_new_stream_start (stream_id));
|
||||||
|
g_free (stream_id);
|
||||||
|
|
||||||
gst_pad_set_caps (stream->pad, caps);
|
gst_pad_set_caps (stream->pad, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
GST_DEBUG_OBJECT (demux, "create pad %s, caps %" GST_PTR_FORMAT, name, caps);
|
GST_DEBUG_OBJECT (demux, "create pad %s, caps %" GST_PTR_FORMAT, name, caps);
|
||||||
|
|
Loading…
Reference in a new issue