basevideodecoder: Fix memory leak

The timestamps are only used if the output adapter is used, not
if complete frames are provided by the decoder and finish_frame() is
called and even in the case where the output adapter is used they
might not be used and are leaked.
This commit is contained in:
Sebastian Dröge 2010-07-10 15:50:50 +02:00
parent 68ab7e509c
commit ccbb765743

View file

@ -927,6 +927,9 @@ gst_base_video_decoder_change_state (GstElement * element,
if (base_video_decoder_class->stop) {
base_video_decoder_class->stop (base_video_decoder);
}
g_list_foreach (base_video_decoder->timestamps, (GFunc) g_free, NULL);
g_list_free (base_video_decoder->timestamps);
base_video_decoder->timestamps = NULL;
break;
default:
break;