nvcodec: fix compiler warning in certain setups
authorTim-Philipp Müller <tim@centricular.com>
Sun, 3 May 2020 09:59:45 +0000 (09:59 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 3 May 2020 10:08:29 +0000 (11:08 +0100)
Fixes gstnvh264dec.c:648:12: warning: unused variable ‘ret’
compiler warning on raspbian where HAVE_NVCODEC_GST_GL is
not defined.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1239>

sys/nvcodec/gstnvh264dec.c

index 940bbef..9db36d9 100644 (file)
@@ -645,7 +645,7 @@ gst_nv_h264_dec_output_picture (GstH264Decoder * decoder,
   GstVideoCodecFrame *frame = NULL;
   GstBuffer *output_buffer = NULL;
   GstNvDecoderFrame *decoder_frame;
-  gboolean ret = FALSE;
+  gboolean ret G_GNUC_UNUSED = FALSE;
 
   GST_LOG_OBJECT (self,
       "Outputting picture %p (poc %d)", picture, picture->pic_order_cnt);