mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
asfdemux: fix adding bitrate to stream tags
https://bugzilla.gnome.org/show_bug.cgi?id=699586
This commit is contained in:
parent
f1bb44460d
commit
62f5601723
1 changed files with 4 additions and 4 deletions
|
@ -3748,10 +3748,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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue