mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
amcvideodec: use GST_STIME_ARGS for GstClockTimeDiff
No need to manually handle negative value of deadline, GST_STIME_ARGS does exactly this.
This commit is contained in:
parent
c9aaa4189b
commit
1ba4d63d6a
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue