mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
ogmparse: Set caps after sending pending events
Avoids sending STREAM_START before CAPS
This commit is contained in:
parent
6c6d8b0b95
commit
51eeb4534a
1 changed files with 1 additions and 1 deletions
|
@ -641,7 +641,6 @@ gst_ogm_parse_stream_header (GstOgmParse * ogm, const guint8 * data, guint size)
|
||||||
ogm->srcpad = gst_pad_new_from_template (ogm->srcpadtempl, "src");
|
ogm->srcpad = gst_pad_new_from_template (ogm->srcpadtempl, "src");
|
||||||
gst_pad_use_fixed_caps (ogm->srcpad);
|
gst_pad_use_fixed_caps (ogm->srcpad);
|
||||||
gst_pad_set_active (ogm->srcpad, TRUE);
|
gst_pad_set_active (ogm->srcpad, TRUE);
|
||||||
gst_pad_set_caps (ogm->srcpad, caps);
|
|
||||||
gst_element_add_pad (GST_ELEMENT (ogm), ogm->srcpad);
|
gst_element_add_pad (GST_ELEMENT (ogm), ogm->srcpad);
|
||||||
GST_INFO_OBJECT (ogm, "Added pad %s:%s with caps %" GST_PTR_FORMAT,
|
GST_INFO_OBJECT (ogm, "Added pad %s:%s with caps %" GST_PTR_FORMAT,
|
||||||
GST_DEBUG_PAD_NAME (ogm->srcpad), caps);
|
GST_DEBUG_PAD_NAME (ogm->srcpad), caps);
|
||||||
|
@ -659,6 +658,7 @@ gst_ogm_parse_stream_header (GstOgmParse * ogm, const guint8 * data, guint size)
|
||||||
}
|
}
|
||||||
g_list_free (cached_events);
|
g_list_free (cached_events);
|
||||||
|
|
||||||
|
gst_pad_set_caps (ogm->srcpad, caps);
|
||||||
{
|
{
|
||||||
GstTagList *tags;
|
GstTagList *tags;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue