g_mutex_unlock (ximagesink->flow_lock);
if (pool != NULL) {
- const GstCaps *pcaps;
+ GstCaps *pcaps;
/* we had a pool, check caps */
config = gst_buffer_pool_get_config (pool);
gst_object_unref (pool);
pool = NULL;
}
+ gst_structure_free (config);
}
if (pool == NULL && need_pool) {
GstVideoInfo info;