diff options
Diffstat (limited to 'gst-libs/gst/video/gstvideodecoder.c')
-rw-r--r-- | gst-libs/gst/video/gstvideodecoder.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gst-libs/gst/video/gstvideodecoder.c b/gst-libs/gst/video/gstvideodecoder.c index 6104f4b2e..0ce27fac0 100644 --- a/gst-libs/gst/video/gstvideodecoder.c +++ b/gst-libs/gst/video/gstvideodecoder.c @@ -2516,6 +2516,12 @@ gst_video_decoder_decode_frame (GstVideoDecoder * decoder, GST_LOG_OBJECT (decoder, "dts %" GST_TIME_FORMAT, GST_TIME_ARGS (frame->dts)); GST_LOG_OBJECT (decoder, "dist %d", frame->distance_from_sync); priv->frames = g_list_append (priv->frames, frame); + + if (g_list_length (priv->frames) > 10) { + GST_WARNING_OBJECT (decoder, "decoder frame list getting long: %d frames," + "possible internal leaking?", g_list_length (priv->frames)); + } + frame->deadline = gst_segment_to_running_time (&decoder->input_segment, GST_FORMAT_TIME, frame->pts); |