mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
xvimagesink: Fix crash in pool on error
The set_config() virtual function is not support to free the config. As a side effect, when there is protocol error of some sort, we endup with a crash. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7292>
This commit is contained in:
parent
15528df1cf
commit
15bed85173
1 changed files with 0 additions and 1 deletions
|
@ -138,7 +138,6 @@ xvimage_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
|
|||
|
||||
if (!xvpool->pre_alloc_mem) {
|
||||
GST_ERROR_OBJECT (pool, "couldn't allocate image");
|
||||
gst_structure_free (config);
|
||||
return FALSE;
|
||||
} else {
|
||||
gint i;
|
||||
|
|
Loading…
Reference in a new issue