Commit 7987378d authored by Erlend Eriksen's avatar Erlend Eriksen

separate gpmf caps and cleanup

parent 1f06b20f
Pipeline #16398 passed with stages
in 16 minutes and 51 seconds
......@@ -6170,20 +6170,14 @@ gst_qt_mux_gpmf_sink_set_caps (GstQTPad * qtpad, GstCaps * caps)
GST_DEBUG_OBJECT (qtmux, "%s:%s, caps=%" GST_PTR_FORMAT,
GST_DEBUG_PAD_NAME (pad), caps);
/* gpmfs default */
qtpad->is_out_of_order = FALSE;
qtpad->sync = FALSE;
qtpad->sparse = TRUE;
qtpad->prepare_buf_func = NULL; // gst_qt_mux_prepare_gpmf_buffer;
qtpad->prepare_buf_func = NULL;
structure = gst_caps_get_structure (caps, 0);
//g_print ("set_caps %s\n", gst_structure_to_string(structure));
/* We know we only handle 608,format=cc_data and 708,format=cdp */
//if (gst_structure_has_name (structure, "gpmf")) {
if (gst_structure_has_name (structure, "text/x-raw")) {
//g_print ("gpmf\n");
if (gst_structure_has_name (structure, "gpmf/x-raw")) {
fourcc_entry = FOURCC_gpmd;
} else
goto refuse_caps;
......
......@@ -167,8 +167,7 @@
"format=(string)utf8"
#define DATA_GPMF \
"text/x-raw, " \
"format=(string)utf8"
"gpmf/x-raw"
#define CEA608_CAPS \
"closedcaption/x-cea-608, format=(string)s334-1a"
......
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