vtdec: simplify caps setting

This commit is contained in:
Andoni Morales Alastruey 2013-05-07 21:45:54 +02:00 committed by Sebastian Dröge
parent 2f36ffb7d0
commit 5f4ac8c58f

View file

@ -98,8 +98,7 @@ gst_vtdec_base_init (GstVTDecClass * klass)
"stream-format", G_TYPE_STRING, "avc", NULL); "stream-format", G_TYPE_STRING, "avc", NULL);
} else if (codec_details->format_id == kVTFormatMPEG2) { } else if (codec_details->format_id == kVTFormatMPEG2) {
gst_structure_set (gst_caps_get_structure (sink_caps, 0), gst_structure_set (gst_caps_get_structure (sink_caps, 0),
"mpegversion", GST_TYPE_INT_RANGE, 1, 2, NULL); "mpegversion", GST_TYPE_INT_RANGE, 1, 2,
gst_structure_set (gst_caps_get_structure (sink_caps, 0),
"systemstream", G_TYPE_BOOLEAN, FALSE, NULL); "systemstream", G_TYPE_BOOLEAN, FALSE, NULL);
} }
sink_template = gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, sink_template = gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,