From b7f763b23f924253d1bbc00c6484266447d5fa87 Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Tue, 9 Dec 2008 18:30:10 +0000 Subject: [PATCH] gst-libs/gst/riff/riff-media.c: Support higher max audio rates for some formats (WAV, Vorbis, LPCM). Original commit message from CVS: 2008-12-09 Julien Moutte * gst-libs/gst/riff/riff-media.c: (gst_riff_create_audio_caps): Support higher max audio rates for some formats (WAV, Vorbis, LPCM). --- ChangeLog | 5 +++++ gst-libs/gst/riff/riff-media.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index b627288727..4ef51e4ded 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-12-09 Julien Moutte + + * gst-libs/gst/riff/riff-media.c: (gst_riff_create_audio_caps): + Support higher max audio rates for some formats (WAV, Vorbis, LPCM). + 2008-12-09 Stefan Kost * gst-libs/gst/riff/riff-read.c: diff --git a/gst-libs/gst/riff/riff-media.c b/gst-libs/gst/riff/riff-media.c index 64257bff50..63944bb351 100644 --- a/gst-libs/gst/riff/riff-media.c +++ b/gst-libs/gst/riff/riff-media.c @@ -892,6 +892,7 @@ gst_riff_create_audio_caps (guint16 codec_id, switch (codec_id) { case GST_RIFF_WAVE_FORMAT_PCM: /* PCM */ + rate_max = 192000; channels_max = 8; if (strf != NULL) { @@ -957,6 +958,7 @@ gst_riff_create_audio_caps (guint16 codec_id, break; case GST_RIFF_WAVE_FORMAT_IEEE_FLOAT: + rate_max = 192000; channels_max = 8; if (strf != NULL) { @@ -1105,6 +1107,7 @@ gst_riff_create_audio_caps (guint16 codec_id, case GST_RIFF_WAVE_FORMAT_VORBIS1PLUS: /* ogg/vorbis mode 1+ */ case GST_RIFF_WAVE_FORMAT_VORBIS2PLUS: /* ogg/vorbis mode 2+ */ case GST_RIFF_WAVE_FORMAT_VORBIS3PLUS: /* ogg/vorbis mode 3+ */ + rate_max = 192000; caps = gst_caps_new_simple ("audio/x-vorbis", NULL); if (codec_name) *codec_name = g_strdup ("Vorbis");