mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-14 18:25:22 +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,
|
||||
ref_state);
|
||||
if (!state
|
||||
|| GST_VIDEO_INFO_WIDTH (&state->info) == 0
|
||||
if (!state)
|
||||
return FALSE;
|
||||
|
||||
if (GST_VIDEO_INFO_WIDTH (&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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue