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
luzpaz
gstreamer
Commits
f2d81f4c
Commit
f2d81f4c
authored
Mar 14, 2012
by
Mark Nauwelaerts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bufferpool: free owned discarded pool config
parent
e3328629
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
gst/gstbufferpool.c
gst/gstbufferpool.c
+4
-0
No files found.
gst/gstbufferpool.c
View file @
f2d81f4c
...
...
@@ -503,6 +503,8 @@ gst_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
/* now we are configured */
pool
->
priv
->
configured
=
TRUE
;
}
else
{
gst_structure_free
(
config
);
}
GST_BUFFER_POOL_UNLOCK
(
pool
);
...
...
@@ -511,12 +513,14 @@ gst_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
/* ERRORS */
was_active:
{
gst_structure_free
(
config
);
GST_WARNING_OBJECT
(
pool
,
"can't change config, we are active"
);
GST_BUFFER_POOL_UNLOCK
(
pool
);
return
FALSE
;
}
have_outstanding:
{
gst_structure_free
(
config
);
GST_WARNING_OBJECT
(
pool
,
"can't change config, have outstanding buffers"
);
GST_BUFFER_POOL_UNLOCK
(
pool
);
return
FALSE
;
...
...
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