Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
GStreamer
gst-plugins-bad
Commits
028338ff
Commit
028338ff
authored
Feb 11, 2019
by
Haihao Xiang
Committed by
Víctor Manuel Jáquez Leal
Feb 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdkdec: set decode_only for output only
MSDK may return MFX_ERR_MORE_DATA but without output surface Fixes
#887
parent
5f2f289b
Pipeline
#18692
passed with stages
in 44 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
sys/msdk/gstmsdkdec.c
sys/msdk/gstmsdkdec.c
+5
-2
No files found.
sys/msdk/gstmsdkdec.c
View file @
028338ff
...
...
@@ -1025,8 +1025,11 @@ gst_msdkdec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame)
break
;
}
}
else
if
(
status
==
MFX_ERR_MORE_DATA
)
{
task
->
decode_only
=
TRUE
;
thiz
->
next_task
=
(
thiz
->
next_task
+
1
)
%
thiz
->
tasks
->
len
;
if
(
task
->
surface
)
{
task
->
decode_only
=
TRUE
;
thiz
->
next_task
=
(
thiz
->
next_task
+
1
)
%
thiz
->
tasks
->
len
;
}
if
(
surface
->
surface
->
Data
.
Locked
>
0
)
surface
=
NULL
;
flow
=
GST_VIDEO_DECODER_FLOW_NEED_DATA
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment