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:
Wim Taymans 2001-12-28 01:28:31 +00:00
parent b020dfe79b
commit 40fc506acb

View file

@ -550,8 +550,8 @@ gst_mpeg2dec_change_state (GstElement *element)
if (!mpeg2dec->closed) {
//mpeg2_close (mpeg2dec->decoder);
mpeg2dec->closed = TRUE;
gst_mpeg2dec_vo_destroy (mpeg2dec);
}
gst_mpeg2dec_vo_destroy (mpeg2dec);
break;
case GST_STATE_READY_TO_NULL:
break;