mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
decoder: vp9: Avoid unnecessary show_frame flag checking while doing picture output
We always set GST_VAAPI_PICTURE_FLAG_SKIPPED for DECODE_ONLY frames and the gstvaapidecoder base calss is reponsible for handling those frames later on. No need for explicit verification of frame header's show_frame in order to do picture outputing.
This commit is contained in:
parent
26f895f4a8
commit
9a314a2430
1 changed files with 2 additions and 3 deletions
|
@ -485,9 +485,8 @@ decode_current_picture (GstVaapiDecoderVp9 * decoder)
|
|||
update_ref_frames (decoder);
|
||||
|
||||
ret:
|
||||
if (frame_hdr->show_frame)
|
||||
if (!gst_vaapi_picture_output (picture))
|
||||
goto error;
|
||||
if (!gst_vaapi_picture_output (picture))
|
||||
goto error;
|
||||
|
||||
gst_vaapi_picture_replace (&priv->current_picture, NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue