playback: Add support for CEA 608/708 CC overlay elements

https://bugzilla.gnome.org/show_bug.cgi?id=794901
This commit is contained in:
Edward Hervey 2018-03-12 10:53:05 +01:00 committed by Edward Hervey
parent 9dceb6ca52
commit 1d2a311c1d
3 changed files with 6 additions and 3 deletions

View file

@ -3905,7 +3905,8 @@ guess_stream_type_from_caps (GstCaps * caps)
if (g_str_has_prefix (name, "audio/"))
return GST_STREAM_TYPE_AUDIO;
if (g_str_has_prefix (name, "text/") ||
g_str_has_prefix (name, "subpicture/"))
g_str_has_prefix (name, "subpicture/") ||
g_str_has_prefix (name, "closedcaption/"))
return GST_STREAM_TYPE_TEXT;
return GST_STREAM_TYPE_UNKNOWN;

View file

@ -32,7 +32,9 @@ G_BEGIN_DECLS
"subpicture/x-dvd; " \
"subpicture/x-dvb; " \
"subpicture/x-xsub; " \
"subpicture/x-pgs"
"subpicture/x-pgs; " \
"closedcaption/x-cea-608; " \
"closedcaption/x-cea-708"
G_END_DECLS

View file

@ -232,7 +232,7 @@ _is_parser (GstElementFactory * factory)
static const gchar *const _sub_pad_names[] = { "subpicture", "subpicture_sink",
"text", "text_sink",
"subtitle_sink", "subtitle"
"subtitle_sink", "subtitle", "cc_sink"
};
static gboolean