projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a819f05
)
msdkdec: Correct return value of GstVideoDecoder::flush()
author
Seungha Yang
<seungha.yang@navercorp.com>
Thu, 2 Jan 2020 03:22:07 +0000
(12:22 +0900)
committer
Seungha Yang
<seungha.yang@navercorp.com>
Thu, 2 Jan 2020 03:22:07 +0000
(12:22 +0900)
Use boolean instead of GstFlowReturn as declared.
Note that since base class does not check return value of GstVideoDecoder::flush(),
this would not cause any change of behavior.
sys/msdk/gstmsdkdec.c
patch
|
blob
|
history
diff --git
a/sys/msdk/gstmsdkdec.c
b/sys/msdk/gstmsdkdec.c
index
cad4a61
..
7e456a4
100644
(file)
--- a/
sys/msdk/gstmsdkdec.c
+++ b/
sys/msdk/gstmsdkdec.c
@@
-1500,8
+1500,11
@@
static gboolean
gst_msdkdec_flush (GstVideoDecoder * decoder)
{
GstMsdkDec *thiz = GST_MSDKDEC (decoder);
+ GstFlowReturn ret;
+
+ ret = gst_msdkdec_drain (GST_VIDEO_DECODER_CAST (thiz));
- return
gst_msdkdec_drain (GST_VIDEO_DECODER_CAST (thiz))
;
+ return
ret == GST_FLOW_OK
;
}
static GstFlowReturn