tsdemux: Expose DVB Subpicture as subpictures
For some reason we were considering them as private data.
This commit is contained in:
parent
531117b7df
commit
a21c2618c5
@ -241,7 +241,7 @@ struct _TSDemuxStream
|
|||||||
|
|
||||||
/* Can also use the subpicture pads for text subtitles? */
|
/* Can also use the subpicture pads for text subtitles? */
|
||||||
#define SUBPICTURE_CAPS \
|
#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 =
|
static GstStaticPadTemplate video_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("video_%04x", GST_PAD_SRC,
|
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);
|
GST_MTS_DESC_DVB_SUBTITLING);
|
||||||
if (desc) {
|
if (desc) {
|
||||||
GST_LOG ("subtitling");
|
GST_LOG ("subtitling");
|
||||||
is_private = TRUE;
|
is_subpicture = TRUE;
|
||||||
caps = gst_caps_new_empty_simple ("subpicture/x-dvb");
|
caps = gst_caps_new_empty_simple ("subpicture/x-dvb");
|
||||||
sparse = TRUE;
|
sparse = TRUE;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user