mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
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:
parent
68ab7e509c
commit
ccbb765743
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue