mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
vtdec: simplify caps setting
This commit is contained in:
parent
2f36ffb7d0
commit
5f4ac8c58f
1 changed files with 1 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue