mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
gst-libs/gst/riff/riff-media.c: Don't add channels and rate fields to the template caps for audio/x-dts, as wavparse ...
Original commit message from CVS: * gst-libs/gst/riff/riff-media.c: (gst_riff_create_audio_caps): Don't add channels and rate fields to the template caps for audio/x-dts, as wavparse might not always be able to set them, which would then lead to 'caps are not a real subset of the template caps' warnings.
This commit is contained in:
parent
d9504cf065
commit
57375cf664
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2007-05-24 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_audio_caps):
|
||||||
|
Don't add channels and rate fields to the template caps for
|
||||||
|
audio/x-dts, as wavparse might not always be able to set them,
|
||||||
|
which would then lead to 'caps are not a real subset of the
|
||||||
|
template caps' warnings.
|
||||||
|
|
||||||
2007-05-24 Jan Schmidt <thaytan@mad.scientist.com>
|
2007-05-24 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
* gst/playback/gstplaybasebin.c: (new_decoded_pad_full):
|
* gst/playback/gstplaybasebin.c: (new_decoded_pad_full):
|
||||||
|
|
|
@ -1000,6 +1000,8 @@ gst_riff_create_audio_caps (guint16 codec_id,
|
||||||
caps = gst_caps_new_simple ("audio/x-dts", NULL);
|
caps = gst_caps_new_simple ("audio/x-dts", NULL);
|
||||||
if (codec_name)
|
if (codec_name)
|
||||||
*codec_name = g_strdup ("DTS audio");
|
*codec_name = g_strdup ("DTS audio");
|
||||||
|
/* wavparse is not always able to specify rate/channels for DTS-in-wav */
|
||||||
|
rate_chan = FALSE;
|
||||||
break;
|
break;
|
||||||
case GST_RIFF_WAVE_FORMAT_AAC:
|
case GST_RIFF_WAVE_FORMAT_AAC:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue