mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
dtsdec: Don't export bitrate if open/variable/lossless
libdca returns the bitrate as 1/2/3 for open/variable/lossless files respectively. This makes sure we don't emit these values.
This commit is contained in:
parent
f543ac34f3
commit
969578d84c
1 changed files with 7 additions and 2 deletions
|
@ -535,8 +535,13 @@ gst_dtsdec_update_streaminfo (GstDtsDec * dts)
|
|||
taglist = gst_tag_list_new ();
|
||||
|
||||
gst_tag_list_add (taglist, GST_TAG_MERGE_APPEND,
|
||||
GST_TAG_AUDIO_CODEC, "DTS DCA",
|
||||
GST_TAG_BITRATE, (guint) dts->bit_rate, NULL);
|
||||
GST_TAG_AUDIO_CODEC, "DTS DCA", NULL);
|
||||
|
||||
if (dts->bit_rate > 3) {
|
||||
/* 1 => open bitrate, 2 => variable bitrate, 3 => lossless */
|
||||
gst_tag_list_add (taglist, GST_TAG_MERGE_APPEND, GST_TAG_BITRATE,
|
||||
(guint) dts->bit_rate, NULL);
|
||||
}
|
||||
|
||||
gst_element_found_tags_for_pad (GST_ELEMENT (dts), dts->srcpad, taglist);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue