Commit 1d2a311c authored by Edward Hervey's avatar Edward Hervey Committed by Edward Hervey

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

https://bugzilla.gnome.org/show_bug.cgi?id=794901
parent 9dceb6ca
...@@ -3905,7 +3905,8 @@ guess_stream_type_from_caps (GstCaps * caps) ...@@ -3905,7 +3905,8 @@ guess_stream_type_from_caps (GstCaps * caps)
if (g_str_has_prefix (name, "audio/")) if (g_str_has_prefix (name, "audio/"))
return GST_STREAM_TYPE_AUDIO; return GST_STREAM_TYPE_AUDIO;
if (g_str_has_prefix (name, "text/") || 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_TEXT;
return GST_STREAM_TYPE_UNKNOWN; return GST_STREAM_TYPE_UNKNOWN;
......
...@@ -32,7 +32,9 @@ G_BEGIN_DECLS ...@@ -32,7 +32,9 @@ G_BEGIN_DECLS
"subpicture/x-dvd; " \ "subpicture/x-dvd; " \
"subpicture/x-dvb; " \ "subpicture/x-dvb; " \
"subpicture/x-xsub; " \ "subpicture/x-xsub; " \
"subpicture/x-pgs" "subpicture/x-pgs; " \
"closedcaption/x-cea-608; " \
"closedcaption/x-cea-708"
G_END_DECLS G_END_DECLS
......
...@@ -232,7 +232,7 @@ _is_parser (GstElementFactory * factory) ...@@ -232,7 +232,7 @@ _is_parser (GstElementFactory * factory)
static const gchar *const _sub_pad_names[] = { "subpicture", "subpicture_sink", static const gchar *const _sub_pad_names[] = { "subpicture", "subpicture_sink",
"text", "text_sink", "text", "text_sink",
"subtitle_sink", "subtitle" "subtitle_sink", "subtitle", "cc_sink"
}; };
static gboolean static gboolean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment