diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2016-02-22 22:08:12 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-02-22 22:11:32 +0000 |
commit | f76b94d86aae4aaf7706fcefc52f97534e68bb21 (patch) | |
tree | c2ae6b897c72c1ecf81f89945eb5d69553c85624 | |
parent | df84c25aee4295ae726c07dc362db212091c5397 (diff) |
asfdemux: fix adding bitrate to stream tags
https://bugzilla.gnome.org/show_bug.cgi?id=699586
-rw-r--r-- | gst/asfdemux/gstasfdemux.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index 4bf0619b..48b732cf 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -3610,10 +3610,10 @@ gst_asf_demux_process_bitrate_props_object (GstASFDemux * demux, guint8 * data, GST_DEBUG_OBJECT (demux, "bitrate of stream %u = %u", stream_id, bitrate); stream = gst_asf_demux_get_stream (demux, stream_id); if (stream) { - if (stream->pending_tags == NULL) { - stream->pending_tags = - gst_tag_list_new (GST_TAG_BITRATE, bitrate, NULL); - } + if (stream->pending_tags == NULL) + stream->pending_tags = gst_tag_list_new_empty (); + gst_tag_list_add (stream->pending_tags, GST_TAG_MERGE_REPLACE, + GST_TAG_BITRATE, bitrate, NULL); } else { GST_WARNING_OBJECT (demux, "Stream id %u wasn't found", stream_id); } |