mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
tsdemux: HDV only has mpeg 1 audio layer 2
Set that accordingly on the caps
This commit is contained in:
parent
2c4f994db4
commit
e6ebd9024e
2 changed files with 4 additions and 0 deletions
|
@ -225,5 +225,6 @@
|
|||
#define DRF_ID_DTS2 0x44545332
|
||||
#define DRF_ID_DTS3 0x44545333
|
||||
#define DRF_ID_S302M 0x42535344
|
||||
#define DRF_ID_TSHV 0x54534856
|
||||
|
||||
#endif /* __GST_MPEG_DESC_H__ */
|
||||
|
|
|
@ -780,6 +780,9 @@ create_pad_for_stream (MpegTSBase * base, MpegTSBaseStream * bstream,
|
|||
caps =
|
||||
gst_caps_new_simple ("audio/mpeg", "mpegversion", G_TYPE_INT, 1,
|
||||
NULL);
|
||||
/* HDV is always mpeg 1 audio layer 2 */
|
||||
if (program->registration_id == DRF_ID_TSHV)
|
||||
gst_caps_set_simple (caps, "layer", G_TYPE_INT, 2, NULL);
|
||||
break;
|
||||
case GST_MPEG_TS_STREAM_TYPE_PRIVATE_PES_PACKETS:
|
||||
GST_LOG ("private data");
|
||||
|
|
Loading…
Reference in a new issue