tsdemux: Expose DVB Subpicture as subpictures

For some reason we were considering them as private data.
This commit is contained in:
Edward Hervey 2015-10-20 09:49:16 +02:00 committed by Edward Hervey
parent 531117b7df
commit a21c2618c5

View file

@ -241,7 +241,7 @@ struct _TSDemuxStream
/* Can also use the subpicture pads for text subtitles? */
#define SUBPICTURE_CAPS \
GST_STATIC_CAPS ("subpicture/x-pgs; subpicture/x-dvd")
GST_STATIC_CAPS ("subpicture/x-pgs; subpicture/x-dvd; subpicture/x-dvb")
static GstStaticPadTemplate video_template =
GST_STATIC_PAD_TEMPLATE ("video_%04x", GST_PAD_SRC,
@ -1181,7 +1181,7 @@ create_pad_for_stream (MpegTSBase * base, MpegTSBaseStream * bstream,
GST_MTS_DESC_DVB_SUBTITLING);
if (desc) {
GST_LOG ("subtitling");
is_private = TRUE;
is_subpicture = TRUE;
caps = gst_caps_new_empty_simple ("subpicture/x-dvb");
sparse = TRUE;
break;