mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
jpegparse: add get_tag_list ()
https://bugzilla.gnome.org/show_bug.cgi?id=626618
This commit is contained in:
parent
17fd7ebcb4
commit
51e57d439e
1 changed files with 10 additions and 3 deletions
|
@ -528,6 +528,14 @@ gst_jpeg_parse_skip_marker (GstJpegParse * parse,
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
static inline GstTagList *
|
||||
get_tag_list (GstJpegParse * parse)
|
||||
{
|
||||
if (!parse->priv->tags)
|
||||
parse->priv->tags = gst_tag_list_new ();
|
||||
return parse->priv->tags;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_jpeg_parse_read_header (GstJpegParse * parse, GstBuffer * buffer)
|
||||
{
|
||||
|
@ -941,9 +949,8 @@ gst_jpeg_parse_sink_event (GstPad * pad, GstEvent * event)
|
|||
|
||||
gst_event_parse_tag (event, &taglist);
|
||||
/* Hold on to the tags till the srcpad caps are definitely set */
|
||||
if (!parse->priv->tags)
|
||||
parse->priv->tags = gst_tag_list_new ();
|
||||
gst_tag_list_insert (parse->priv->tags, taglist, GST_TAG_MERGE_REPLACE);
|
||||
gst_tag_list_insert (get_tag_list (parse), taglist,
|
||||
GST_TAG_MERGE_REPLACE);
|
||||
gst_event_unref (event);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue