Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gst-plugins-bad
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,001
Issues
1,001
List
Boards
Labels
Service Desk
Milestones
Merge Requests
194
Merge Requests
194
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GStreamer
gst-plugins-bad
Commits
acc536f1
Commit
acc536f1
authored
Jan 09, 2019
by
Haihao Xiang
Committed by
Tim-Philipp Müller
May 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdk: check whether mfx function call fails
And log the failures for debugging
parent
73ff734e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
sys/msdk/gstmsdkcontext.c
sys/msdk/gstmsdkcontext.c
+8
-0
sys/msdk/gstmsdkenc.c
sys/msdk/gstmsdkenc.c
+10
-3
No files found.
sys/msdk/gstmsdkcontext.c
View file @
acc536f1
...
...
@@ -308,6 +308,14 @@ gst_msdk_context_new_with_parent (GstMsdkContext * parent)
if
(
priv
->
hardware
)
{
status
=
MFXVideoCORE_SetHandle
(
priv
->
session
,
MFX_HANDLE_VA_DISPLAY
,
(
mfxHDL
)
parent_priv
->
dpy
);
if
(
status
!=
MFX_ERR_NONE
)
{
GST_ERROR
(
"Setting VA handle failed (%s)"
,
msdk_status_to_string
(
status
));
g_object_unref
(
obj
);
return
NULL
;
}
}
#endif
...
...
sys/msdk/gstmsdkenc.c
View file @
acc536f1
...
...
@@ -340,9 +340,14 @@ gst_msdkenc_init_encoder (GstMsdkEnc * thiz)
status
=
MFXVideoVPP_GetVideoParam
(
session
,
&
thiz
->
vpp_param
);
if
(
status
<
MFX_ERR_NONE
)
{
mfxStatus
status1
;
GST_ERROR_OBJECT
(
thiz
,
"Get VPP Parameters failed (%s)"
,
msdk_status_to_string
(
status
));
MFXVideoVPP_Close
(
session
);
status1
=
MFXVideoVPP_Close
(
session
);
if
(
status1
!=
MFX_ERR_NONE
&&
status1
!=
MFX_ERR_NOT_INITIALIZED
)
GST_WARNING_OBJECT
(
thiz
,
"VPP close failed (%s)"
,
msdk_status_to_string
(
status1
));
goto
no_vpp
;
}
else
if
(
status
>
MFX_ERR_NONE
)
{
GST_WARNING_OBJECT
(
thiz
,
"Get VPP Parameters returned: %s"
,
...
...
@@ -665,8 +670,10 @@ gst_msdkenc_finish_frame (GstMsdkEnc * thiz, MsdkEncTask * task,
* is used in MSDK samples
* #define MSDK_ENC_WAIT_INTERVAL 300000
*/
MFXVideoCORE_SyncOperation
(
gst_msdk_context_get_session
(
thiz
->
context
),
task
->
sync_point
,
300000
);
if
(
MFXVideoCORE_SyncOperation
(
gst_msdk_context_get_session
(
thiz
->
context
),
task
->
sync_point
,
300000
)
!=
MFX_ERR_NONE
)
GST_WARNING_OBJECT
(
thiz
,
"failed to do sync operation"
);
if
(
!
discard
&&
task
->
output_bitstream
.
DataLength
)
{
GstBuffer
*
out_buf
=
NULL
;
guint8
*
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