mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
vaapidecode: improve code readability
No functional changes.
This commit is contained in:
parent
eb911e9eab
commit
23a9a7291a
1 changed files with 5 additions and 4 deletions
|
@ -286,11 +286,12 @@ gst_vaapidecode_update_src_caps (GstVaapiDecode * decode)
|
||||||
|
|
||||||
state = gst_video_decoder_set_output_state (vdec, format, width, height,
|
state = gst_video_decoder_set_output_state (vdec, format, width, height,
|
||||||
ref_state);
|
ref_state);
|
||||||
if (!state
|
if (!state)
|
||||||
|| GST_VIDEO_INFO_WIDTH (&state->info) == 0
|
return FALSE;
|
||||||
|
|
||||||
|
if (GST_VIDEO_INFO_WIDTH (&state->info) == 0
|
||||||
|| GST_VIDEO_INFO_HEIGHT (&state->info) == 0) {
|
|| GST_VIDEO_INFO_HEIGHT (&state->info) == 0) {
|
||||||
if (state)
|
gst_video_codec_state_unref (state);
|
||||||
gst_video_codec_state_unref (state);
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue