mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
unref pool too
Original commit message from CVS: unref pool too
This commit is contained in:
parent
18c9d19de2
commit
801ee2866c
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue