d3d11decoder: Fix wrong return type from output_picture vfunc
authorSeungha Yang <seungha@centricular.com>
Thu, 23 Apr 2020 14:52:24 +0000 (23:52 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 23 Apr 2020 22:06:24 +0000 (22:06 +0000)
Return type should be GstFlowReturn, not gboolean

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

sys/d3d11/gstd3d11h264dec.c
sys/d3d11/gstd3d11h265dec.c
sys/d3d11/gstd3d11vp8dec.c
sys/d3d11/gstd3d11vp9dec.c

index 4d97969109ff1d721446334d1a998984bba91399..459b012aea9cae7d50f64542de82269334408121 100644 (file)
@@ -619,7 +619,7 @@ gst_d3d11_h264_dec_output_picture (GstH264Decoder * decoder,
 
   if (!view_buffer) {
     GST_ERROR_OBJECT (self, "Could not get output view");
-    return FALSE;
+    return GST_FLOW_ERROR;
   }
 
   frame = gst_video_decoder_get_frame (GST_VIDEO_DECODER (self),
index 6556d4b945307677dd730983645a5e87c41196b3..c3b00286621ad94ba2cfadb82683ba3ce1df3d7d 100644 (file)
@@ -660,7 +660,7 @@ gst_d3d11_h265_dec_output_picture (GstH265Decoder * decoder,
 
   if (!view_buffer) {
     GST_ERROR_OBJECT (self, "Could not get output view");
-    return FALSE;
+    return GST_FLOW_ERROR;
   }
 
   frame = gst_video_decoder_get_frame (GST_VIDEO_DECODER (self),
index eb1f19353c94671153ae2964957a05e641353ed6..f8ebbca1bec11cd4e7f732fa1ac4fbea6c465b78 100644 (file)
@@ -375,7 +375,7 @@ gst_d3d11_vp8_dec_output_picture (GstVp8Decoder * decoder,
 
   if (!view_buffer) {
     GST_ERROR_OBJECT (self, "Could not get output view");
-    return FALSE;
+    return GST_FLOW_ERROR;
   }
 
   frame = gst_video_decoder_get_frame (GST_VIDEO_DECODER (self),
index d5f49a26c27765987fa6c4e4c676b29a84629d26..c22a980b2c66d7d0b9c6694aef66166c00f9cdc7 100644 (file)
@@ -478,7 +478,7 @@ gst_d3d11_vp9_dec_output_picture (GstVp9Decoder * decoder,
 
   if (!view_buffer) {
     GST_ERROR_OBJECT (self, "Could not get output view");
-    return FALSE;
+    return GST_FLOW_ERROR;
   }
 
   frame = gst_video_decoder_get_frame (GST_VIDEO_DECODER (self),