projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8596ec2
)
videodecoder: Fix a leak introduced in fcb63e
author
Jan Schmidt
<jan@centricular.com>
Mon, 6 Mar 2017 08:14:48 +0000
(19:14 +1100)
committer
Jan Schmidt
<jan@centricular.com>
Mon, 6 Mar 2017 08:14:48 +0000
(19:14 +1100)
CID:
1402055
gst-libs/gst/video/gstvideodecoder.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/video/gstvideodecoder.c
b/gst-libs/gst/video/gstvideodecoder.c
index 8e2a6236153e74b939a5c95003d16272f2b60695..b52ee1c2170a74a5fed6693118532b26a2572508 100644
(file)
--- a/
gst-libs/gst/video/gstvideodecoder.c
+++ b/
gst-libs/gst/video/gstvideodecoder.c
@@
-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 ")",