From: Sebastian Dröge Date: Sun, 7 Dec 2008 17:57:13 +0000 (+0000) Subject: gst/mxf/mxfmpeg.c: Set codec name tags for the MPEG audio essence. X-Git-Tag: 1.19.3~507^2~19753 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8932df4eef2b5bfadfd4d0fc60eed393d29fb09e;p=platform%2Fupstream%2Fgstreamer.git gst/mxf/mxfmpeg.c: Set codec name tags for the MPEG audio essence. Original commit message from CVS: * gst/mxf/mxfmpeg.c: (mxf_mpeg_es_create_caps): Set codec name tags for the MPEG audio essence. --- diff --git a/ChangeLog b/ChangeLog index a66bf9e..b0b20a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-12-07 Sebastian Dröge + * gst/mxf/mxfmpeg.c: (mxf_mpeg_es_create_caps): + Set codec name tags for the MPEG audio essence. + +2008-12-07 Sebastian Dröge + * gst/mxf/Makefile.am: * gst/mxf/mxfdemux.c: (gst_mxf_demux_handle_header_metadata_update_streams): diff --git a/gst/mxf/mxfmpeg.c b/gst/mxf/mxfmpeg.c index ba3c2d8..810474a 100644 --- a/gst/mxf/mxfmpeg.c +++ b/gst/mxf/mxfmpeg.c @@ -366,32 +366,39 @@ mxf_mpeg_es_create_caps (MXFMetadataGenericPackage * package, caps = gst_caps_new_simple ("audio/mpeg", "mpegversion", G_TYPE_INT, 1, NULL); + codec_name = "MPEG-1 Audio"; } else if (mxf_ul_is_equal (&s->sound_essence_compression, &sound_essence_compression_ac3)) { caps = gst_caps_new_simple ("audio/ac3", NULL); + codec_name = "AC3 Audio"; } else if (mxf_ul_is_equal (&s->sound_essence_compression, &sound_essence_compression_mpeg1_layer1)) { caps = gst_caps_new_simple ("audio/mpeg", "mpegversion", G_TYPE_INT, 1, "layer", G_TYPE_INT, 1, NULL); + codec_name = "MPEG-1 Layer 1 Audio"; } else if (mxf_ul_is_equal (&s->sound_essence_compression, &sound_essence_compression_mpeg1_layer12)) { caps = gst_caps_new_simple ("audio/mpeg", "mpegversion", G_TYPE_INT, 1, NULL); + codec_name = "MPEG-1 Audio"; } else if (mxf_ul_is_equal (&s->sound_essence_compression, &sound_essence_compression_mpeg1_layer2)) { caps = gst_caps_new_simple ("audio/mpeg", "mpegversion", G_TYPE_INT, 1, "layer", G_TYPE_INT, 2, NULL); + codec_name = "MPEG-1 Layer 2 Audio"; } else if (mxf_ul_is_equal (&s->sound_essence_compression, &sound_essence_compression_mpeg2_layer1)) { caps = gst_caps_new_simple ("audio/mpeg", "mpegversion", G_TYPE_INT, 1, "layer", G_TYPE_INT, 1, "mpegaudioversion", G_TYPE_INT, 2, NULL); + codec_name = "MPEG-2 Layer 1 Audio"; } else if (mxf_ul_is_equal (&s->sound_essence_compression, &sound_essence_compression_dts)) { caps = gst_caps_new_simple ("audio/x-dts", NULL); + codec_name = "Dolby DTS Audio"; } if (caps) {