gst-libs/gst/riff/riff-media.c: generate caps for ATRAC3 audio streams

Original commit message from CVS:
* gst-libs/gst/riff/riff-media.c:
generate caps for ATRAC3 audio streams

* gst/realmedia/rmdemux.c:
generate caps for ATRAC3 audio streams
This commit is contained in:
Stéphane Loeuillet 2004-10-06 14:18:13 +00:00
parent d758670cab
commit 82eacd3599
3 changed files with 19 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2004-10-06 Stephane Loeuillet <stephane.loeuillet@tiscali.fr>
* gst-libs/gst/riff/riff-media.c:
generate caps for ATRAC3 audio streams
* gst/realmedia/rmdemux.c:
generate caps for ATRAC3 audio streams
2004-10-06 Stephane Loeuillet <stephane.loeuillet@tiscali.fr>
* gst/wavparse/Makefile.am

View file

@ -476,6 +476,12 @@ gst_riff_create_audio_caps_with_data (guint16 codec_id,
}
break;
}
case GST_RIFF_WAVE_FORMAT_SONY_ATRAC3:
caps = gst_caps_new_simple ("audio/x-vnd.sony.atrac3", NULL);
if (codec_name)
*codec_name = g_strdup ("Sony ATRAC3");
break;
default:
GST_WARNING ("Unknown audio tag 0x%04x", codec_id);
return NULL;

View file

@ -571,6 +571,11 @@ gst_rmdemux_add_stream (GstRMDemux * rmdemux, GstRMDemuxStream * stream)
(int) 4, NULL);
break;
/* Sony ATRAC3 */
case GST_RM_AUD_ATRC:
stream->caps = gst_caps_new_simple ("audio/x-vnd.sony.atrac3", NULL);
break;
/* RealAudio audio/RALF is lossless */
case GST_RM_AUD_COOK:
case GST_RM_AUD_RALF:
@ -578,8 +583,6 @@ gst_rmdemux_add_stream (GstRMDemux * rmdemux, GstRMDemuxStream * stream)
/* Sipro/ACELP-NET Voice Codec */
case GST_RM_AUD_SIPR:
/* Sony ATRAC3 */
case GST_RM_AUD_ATRC:
GST_WARNING ("Nothing known to decode this audio FOURCC code");
break;