mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-06 14:32:31 +00:00
vtdec: gst-indent file
This commit is contained in:
parent
fade5a6d8a
commit
578b8432b6
1 changed files with 6 additions and 3 deletions
|
@ -260,7 +260,8 @@ out:
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_vtdec_negotiate_output_format (GstVtdec * vtdec, GstVideoCodecState *input_state)
|
gst_vtdec_negotiate_output_format (GstVtdec * vtdec,
|
||||||
|
GstVideoCodecState * input_state)
|
||||||
{
|
{
|
||||||
GstCaps *caps = NULL, *peercaps = NULL, *templcaps;
|
GstCaps *caps = NULL, *peercaps = NULL, *templcaps;
|
||||||
GstVideoFormat output_format;
|
GstVideoFormat output_format;
|
||||||
|
@ -273,7 +274,8 @@ gst_vtdec_negotiate_output_format (GstVtdec * vtdec, GstVideoCodecState *input_s
|
||||||
|
|
||||||
/* Check if output supports GL caps by preference */
|
/* Check if output supports GL caps by preference */
|
||||||
templcaps = gst_pad_get_pad_template_caps (GST_VIDEO_DECODER_SRC_PAD (vtdec));
|
templcaps = gst_pad_get_pad_template_caps (GST_VIDEO_DECODER_SRC_PAD (vtdec));
|
||||||
caps = gst_caps_intersect_full (templcaps, peercaps, GST_CAPS_INTERSECT_FIRST);
|
caps =
|
||||||
|
gst_caps_intersect_full (templcaps, peercaps, GST_CAPS_INTERSECT_FIRST);
|
||||||
|
|
||||||
gst_caps_unref (peercaps);
|
gst_caps_unref (peercaps);
|
||||||
gst_caps_unref (templcaps);
|
gst_caps_unref (templcaps);
|
||||||
|
@ -292,7 +294,8 @@ gst_vtdec_negotiate_output_format (GstVtdec * vtdec, GstVideoCodecState *input_s
|
||||||
}
|
}
|
||||||
|
|
||||||
output_state = gst_video_decoder_set_output_state (GST_VIDEO_DECODER (vtdec),
|
output_state = gst_video_decoder_set_output_state (GST_VIDEO_DECODER (vtdec),
|
||||||
output_format, vtdec->video_info.width, vtdec->video_info.height, input_state);
|
output_format, vtdec->video_info.width, vtdec->video_info.height,
|
||||||
|
input_state);
|
||||||
|
|
||||||
output_state->caps = gst_video_info_to_caps (&output_state->info);
|
output_state->caps = gst_video_info_to_caps (&output_state->info);
|
||||||
gst_caps_set_features (output_state->caps, 0, features);
|
gst_caps_set_features (output_state->caps, 0, features);
|
||||||
|
|
Loading…
Reference in a new issue