From 801ee2866c79d89ae47d39e3956697fe26752dfe Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 12 Jan 2003 21:31:16 +0000 Subject: unref pool too Original commit message from CVS: unref pool too --- ext/hermes/gstcolorspace.c | 2 ++ 1 file changed, 2 insertions(+) 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: -- cgit v1.2.1