mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
gme: Free decoder instance when going from PAUSED to READY
We only ever cleaned it up before on errors.
This commit is contained in:
parent
fbf7e905f0
commit
7360c93de1
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue