From 24965dc41522578d61c29c61a7788d5d80c8bc12 Mon Sep 17 00:00:00 2001 From: Arnaud Patard Date: Sat, 2 Jan 2010 17:33:57 +0100 Subject: [PATCH] mpegtsdemux: Handle eac3 in PMT When the stream type is set to private data, gst-mpegtsdemux is trying to find audio descriptors in PMT and look for AC3 (tag 0x6a) but doesn't look for EAC3 (tag 0x7a). Handle this case too. Fixes bug #605904. --- gst/mpegdemux/gstmpegtsdemux.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/mpegdemux/gstmpegtsdemux.c b/gst/mpegdemux/gstmpegtsdemux.c index d267fd241f..74634254be 100644 --- a/gst/mpegdemux/gstmpegtsdemux.c +++ b/gst/mpegdemux/gstmpegtsdemux.c @@ -660,6 +660,10 @@ gst_mpegts_demux_fill_stream (GstMpegTSStream * stream, guint8 id, template = klass->audio_template; name = g_strdup_printf ("audio_%04x", stream->PID); caps = gst_caps_new_simple ("audio/x-ac3", NULL); + } else if (gst_mpeg_descriptor_find (stream->ES_info, DESC_DVB_ENHANCED_AC3)) { + template = klass->private_template; + name = g_strdup_printf ("audio_%04x", stream->PID); + caps = gst_caps_new_simple ("audio/x-eac3", NULL); } else if (gst_mpeg_descriptor_find (stream->ES_info, DESC_DVB_TELETEXT)) { template = klass->private_template; name = g_strdup_printf ("private_%04x", stream->PID);