tsdemux: Add descriptors for SMPTE 302m audio

This commit is contained in:
David Schleef 2013-02-04 18:07:17 -08:00
parent 7df753165f
commit a19c0b5697
2 changed files with 6 additions and 0 deletions

View file

@ -340,6 +340,7 @@
#define DRF_ID_DTS1 0x44545331
#define DRF_ID_DTS2 0x44545332
#define DRF_ID_DTS3 0x44545333
#define DRF_ID_S302M 0x42535344
typedef struct
{

View file

@ -772,6 +772,11 @@ create_pad_for_stream (MpegTSBase * base, MpegTSBaseStream * bstream,
name = g_strdup_printf ("private_%04x", bstream->pid);
caps = gst_caps_new_empty_simple ("audio/x-dts");
break;
case DRF_ID_S302M:
template = gst_static_pad_template_get (&audio_template);
name = g_strdup_printf ("audio_%04x", bstream->pid);
caps = gst_caps_new_empty_simple ("audio/x-smpte-302m");
break;
}
g_free (desc);
}