ximagesink: reset the pool
This commit is contained in:
parent
e993bde873
commit
825c650964
@ -1811,9 +1811,11 @@ gst_ximagesink_reset (GstXImageSink * ximagesink)
|
|||||||
gst_buffer_unref (GST_BUFFER_CAST (ximagesink->cur_image));
|
gst_buffer_unref (GST_BUFFER_CAST (ximagesink->cur_image));
|
||||||
ximagesink->cur_image = NULL;
|
ximagesink->cur_image = NULL;
|
||||||
}
|
}
|
||||||
#if 0
|
|
||||||
gst_ximagesink_bufferpool_clear (ximagesink);
|
if (ximagesink->pool) {
|
||||||
#endif
|
gst_object_unref (ximagesink->pool);
|
||||||
|
ximagesink->pool = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
g_mutex_lock (ximagesink->flow_lock);
|
g_mutex_lock (ximagesink->flow_lock);
|
||||||
if (ximagesink->xwindow) {
|
if (ximagesink->xwindow) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user