From 7360c93de165823f49e2df39b17f2a4569362cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 13 Dec 2016 20:42:44 +0200 Subject: [PATCH] gme: Free decoder instance when going from PAUSED to READY We only ever cleaned it up before on errors. --- ext/gme/gstgme.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/gme/gstgme.c b/ext/gme/gstgme.c index 4fb44295f0..25e58b8f15 100644 --- a/ext/gme/gstgme.c +++ b/ext/gme/gstgme.c @@ -489,6 +489,10 @@ gst_gme_dec_change_state (GstElement * element, GstStateChange transition) switch (transition) { case GST_STATE_CHANGE_PAUSED_TO_READY: gst_adapter_clear (dec->adapter); + if (dec->player) { + gme_delete (dec->player); + dec->player = NULL; + } break; default: break;