From 8932df4eef2b5bfadfd4d0fc60eed393d29fb09e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 7 Dec 2008 17:57:13 +0000 Subject: 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. --- ChangeLog | 5 +++++ gst/mxf/mxfmpeg.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index a66bf9e4..b0b20a81 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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: diff --git a/gst/mxf/mxfmpeg.c b/gst/mxf/mxfmpeg.c index ba3c2d8e..810474a4 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) { -- cgit v1.2.1