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
994
Issues
994
List
Boards
Labels
Service Desk
Milestones
Merge Requests
192
Merge Requests
192
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
2ecba3e7
Commit
2ecba3e7
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
msdkenc: return NULL instead of FALSE
The returned type is a pointer
parent
935b3db9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sys/msdk/gstmsdkenc.c
sys/msdk/gstmsdkenc.c
+4
-4
No files found.
sys/msdk/gstmsdkenc.c
View file @
2ecba3e7
...
...
@@ -874,7 +874,7 @@ gst_msdkenc_create_buffer_pool (GstMsdkEnc * thiz, GstCaps * caps,
if
(
!
gst_video_info_from_caps
(
&
info
,
caps
))
{
GST_INFO_OBJECT
(
thiz
,
"failed to get video info"
);
return
FALSE
;
return
NULL
;
}
gst_msdk_set_video_alignment
(
&
info
,
&
align
);
...
...
@@ -913,20 +913,20 @@ gst_msdkenc_create_buffer_pool (GstMsdkEnc * thiz, GstCaps * caps,
error_no_pool:
{
GST_INFO_OBJECT
(
thiz
,
"failed to create bufferpool"
);
return
FALSE
;
return
NULL
;
}
error_no_allocator:
{
GST_INFO_OBJECT
(
thiz
,
"failed to create allocator"
);
gst_object_unref
(
pool
);
return
FALSE
;
return
NULL
;
}
error_pool_config:
{
GST_INFO_OBJECT
(
thiz
,
"failed to set config"
);
gst_object_unref
(
pool
);
gst_object_unref
(
allocator
);
return
FALSE
;
return
NULL
;
}
}
...
...
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