projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e993bde
)
ximagesink: reset the pool
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 4 Mar 2011 09:21:52 +0000
(10:21 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 4 Mar 2011 15:21:55 +0000
(16:21 +0100)
sys/ximage/ximagesink.c
patch
|
blob
|
history
diff --git
a/sys/ximage/ximagesink.c
b/sys/ximage/ximagesink.c
index 47383e0f4e643cf94d9cc875fa240b0ecac9523c..1bf95f221aa78f7e70879e605a947e1197e2f385 100644
(file)
--- a/
sys/ximage/ximagesink.c
+++ b/
sys/ximage/ximagesink.c
@@
-1811,9
+1811,11
@@
gst_ximagesink_reset (GstXImageSink * ximagesink)
gst_buffer_unref (GST_BUFFER_CAST (ximagesink->cur_image));
ximagesink->cur_image = NULL;
}
-#if 0
- gst_ximagesink_bufferpool_clear (ximagesink);
-#endif
+
+ if (ximagesink->pool) {
+ gst_object_unref (ximagesink->pool);
+ ximagesink->pool = NULL;
+ }
g_mutex_lock (ximagesink->flow_lock);
if (ximagesink->xwindow) {