mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
playback: Add support for CEA 608/708 CC overlay elements
https://bugzilla.gnome.org/show_bug.cgi?id=794901
This commit is contained in:
parent
9dceb6ca52
commit
1d2a311c1d
3 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue