From 1ba4d63d6a60ae30a06c79b50589dd35c0aadab2 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Tue, 3 Nov 2015 15:00:01 +0000 Subject: [PATCH] amcvideodec: use GST_STIME_ARGS for GstClockTimeDiff No need to manually handle negative value of deadline, GST_STIME_ARGS does exactly this. --- sys/androidmedia/gstamcvideodec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/androidmedia/gstamcvideodec.c b/sys/androidmedia/gstamcvideodec.c index d704c4add4..77f3554775 100644 --- a/sys/androidmedia/gstamcvideodec.c +++ b/sys/androidmedia/gstamcvideodec.c @@ -805,8 +805,8 @@ retry: gst_video_decoder_get_max_decode_time (GST_VIDEO_DECODER (self), frame)) < 0) { GST_WARNING_OBJECT (self, - "Frame is too late, dropping (deadline %" GST_TIME_FORMAT ")", - GST_TIME_ARGS (-deadline)); + "Frame is too late, dropping (deadline %" GST_STIME_FORMAT ")", + GST_STIME_ARGS (deadline)); flow_ret = gst_video_decoder_drop_frame (GST_VIDEO_DECODER (self), frame); } else if (self->codec_config == AMC_CODEC_CONFIG_WITH_SURFACE && buffer_info.size > 0) {