decoder: vp9: Avoid unnecessary show_frame flag checking while doing picture output
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Mon, 16 Nov 2015 16:22:33 +0000 (18:22 +0200)
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>
Mon, 16 Nov 2015 16:22:33 +0000 (18:22 +0200)
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.

gst-libs/gst/vaapi/gstvaapidecoder_vp9.c

index b97487a..b9e023d 100644 (file)
@@ -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);