mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 21:12:26 +00:00
videodecoder: Fix a leak introduced in fcb63e
CID: 1402055
This commit is contained in:
parent
8596ec23cb
commit
052d34478f
1 changed files with 2 additions and 2 deletions
|
@ -1921,8 +1921,6 @@ gst_video_decoder_add_buffer_info (GstVideoDecoder * decoder,
|
|||
GstVideoDecoderPrivate *priv = decoder->priv;
|
||||
Timestamp *ts;
|
||||
|
||||
ts = g_slice_new (Timestamp);
|
||||
|
||||
if (!GST_BUFFER_PTS_IS_VALID (buffer) &&
|
||||
!GST_BUFFER_DTS_IS_VALID (buffer) &&
|
||||
!GST_BUFFER_DURATION_IS_VALID (buffer) &&
|
||||
|
@ -1932,6 +1930,8 @@ gst_video_decoder_add_buffer_info (GstVideoDecoder * decoder,
|
|||
return;
|
||||
}
|
||||
|
||||
ts = g_slice_new (Timestamp);
|
||||
|
||||
GST_LOG_OBJECT (decoder,
|
||||
"adding PTS %" GST_TIME_FORMAT " DTS %" GST_TIME_FORMAT
|
||||
" (offset:%" G_GUINT64_FORMAT ")",
|
||||
|
|
Loading…
Reference in a new issue