From 95db5e7182972c970f891fcdd1ab1208592f0a0d Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 10 Sep 2020 21:42:49 +0900 Subject: [PATCH] codecs: vp9decoder: Remove unused pts variable Part-of: --- gst-libs/gst/codecs/gstvp9decoder.c | 2 -- gst-libs/gst/codecs/gstvp9picture.c | 1 - gst-libs/gst/codecs/gstvp9picture.h | 1 - 3 files changed, 4 deletions(-) diff --git a/gst-libs/gst/codecs/gstvp9decoder.c b/gst-libs/gst/codecs/gstvp9decoder.c index 8b48992..73718e0 100644 --- a/gst-libs/gst/codecs/gstvp9decoder.c +++ b/gst-libs/gst/codecs/gstvp9decoder.c @@ -384,7 +384,6 @@ gst_vp9_decoder_handle_frame (GstVideoDecoder * decoder, goto unmap_and_error; } - picture->pts = GST_BUFFER_PTS (in_buf); picture->size = 0; if (i == frame_idx_to_consume) @@ -398,7 +397,6 @@ gst_vp9_decoder_handle_frame (GstVideoDecoder * decoder, } else { picture = gst_vp9_picture_new (); picture->frame_hdr = *cur_hdr; - picture->pts = GST_BUFFER_PTS (in_buf); picture->data = map.data + offset; picture->size = superframe_info.frame_sizes[i]; diff --git a/gst-libs/gst/codecs/gstvp9picture.c b/gst-libs/gst/codecs/gstvp9picture.c index 0609d37..ffaf6af 100644 --- a/gst-libs/gst/codecs/gstvp9picture.c +++ b/gst-libs/gst/codecs/gstvp9picture.c @@ -52,7 +52,6 @@ gst_vp9_picture_new (void) GstVp9Picture *pic; pic = g_new0 (GstVp9Picture, 1); - pic->pts = GST_CLOCK_TIME_NONE; gst_mini_object_init (GST_MINI_OBJECT_CAST (pic), 0, GST_TYPE_VP9_PICTURE, NULL, NULL, diff --git a/gst-libs/gst/codecs/gstvp9picture.h b/gst-libs/gst/codecs/gstvp9picture.h index 25a82df..449871b 100644 --- a/gst-libs/gst/codecs/gstvp9picture.h +++ b/gst-libs/gst/codecs/gstvp9picture.h @@ -36,7 +36,6 @@ struct _GstVp9Picture { GstMiniObject parent; - GstClockTime pts; /* From GstVideoCodecFrame */ guint32 system_frame_number; -- 2.7.4