mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
Do the close in the right place so we don't leak buffers.
Original commit message from CVS: Do the close in the right place so we don't leak buffers.
This commit is contained in:
parent
b020dfe79b
commit
40fc506acb
1 changed files with 1 additions and 1 deletions
|
@ -550,8 +550,8 @@ gst_mpeg2dec_change_state (GstElement *element)
|
||||||
if (!mpeg2dec->closed) {
|
if (!mpeg2dec->closed) {
|
||||||
//mpeg2_close (mpeg2dec->decoder);
|
//mpeg2_close (mpeg2dec->decoder);
|
||||||
mpeg2dec->closed = TRUE;
|
mpeg2dec->closed = TRUE;
|
||||||
gst_mpeg2dec_vo_destroy (mpeg2dec);
|
|
||||||
}
|
}
|
||||||
|
gst_mpeg2dec_vo_destroy (mpeg2dec);
|
||||||
break;
|
break;
|
||||||
case GST_STATE_READY_TO_NULL:
|
case GST_STATE_READY_TO_NULL:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue