unref pool too

Original commit message from CVS:
unref pool too
This commit is contained in:
Wim Taymans 2003-01-12 21:31:16 +00:00
parent 18c9d19de2
commit 801ee2866c

View file

@ -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: