summaryrefslogtreecommitdiffstats
path: root/ext/hermes
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2003-01-12 21:31:16 +0000
committerWim Taymans <wim.taymans@gmail.com>2003-01-12 21:31:16 +0000
commit801ee2866c79d89ae47d39e3956697fe26752dfe (patch)
tree0016392fa45057c8a262884151bc168cddb34421 /ext/hermes
parent18c9d19de27cb3d87e617c8362aa23bd52295110 (diff)
downloadgst-plugins-bad-801ee2866c79d89ae47d39e3956697fe26752dfe.tar.gz
gst-plugins-bad-801ee2866c79d89ae47d39e3956697fe26752dfe.tar.bz2
gst-plugins-bad-801ee2866c79d89ae47d39e3956697fe26752dfe.zip
unref pool too
Original commit message from CVS: unref pool too
Diffstat (limited to 'ext/hermes')
-rw-r--r--ext/hermes/gstcolorspace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/hermes/gstcolorspace.c b/ext/hermes/gstcolorspace.c
index 484c7e3c..53b4cc8d 100644
--- a/ext/hermes/gstcolorspace.c
+++ b/ext/hermes/gstcolorspace.c
@@ -540,6 +540,8 @@ gst_colorspace_change_state (GstElement *element)
space->pool = gst_pad_get_bufferpool (space->srcpad);
break;
case GST_STATE_PLAYING_TO_PAUSED:
+ if (space->pool)
+ gst_buffer_pool_unref (space->pool);
space->pool = NULL;
break;
case GST_STATE_PAUSED_TO_READY: