From 2fe473fa5072caff9439280a956a197ea2434354 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 23 Apr 2020 23:52:24 +0900 Subject: [PATCH] d3d11decoder: Fix wrong return type from output_picture vfunc Return type should be GstFlowReturn, not gboolean Part-of: --- sys/d3d11/gstd3d11h264dec.c | 2 +- sys/d3d11/gstd3d11h265dec.c | 2 +- sys/d3d11/gstd3d11vp8dec.c | 2 +- sys/d3d11/gstd3d11vp9dec.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/d3d11/gstd3d11h264dec.c b/sys/d3d11/gstd3d11h264dec.c index 4d97969109..459b012aea 100644 --- a/sys/d3d11/gstd3d11h264dec.c +++ b/sys/d3d11/gstd3d11h264dec.c @@ -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), diff --git a/sys/d3d11/gstd3d11h265dec.c b/sys/d3d11/gstd3d11h265dec.c index 6556d4b945..c3b0028662 100644 --- a/sys/d3d11/gstd3d11h265dec.c +++ b/sys/d3d11/gstd3d11h265dec.c @@ -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), diff --git a/sys/d3d11/gstd3d11vp8dec.c b/sys/d3d11/gstd3d11vp8dec.c index eb1f19353c..f8ebbca1be 100644 --- a/sys/d3d11/gstd3d11vp8dec.c +++ b/sys/d3d11/gstd3d11vp8dec.c @@ -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), diff --git a/sys/d3d11/gstd3d11vp9dec.c b/sys/d3d11/gstd3d11vp9dec.c index d5f49a26c2..c22a980b2c 100644 --- a/sys/d3d11/gstd3d11vp9dec.c +++ b/sys/d3d11/gstd3d11vp9dec.c @@ -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),