summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: