mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
videodecoder: use GST_CLOCK_TIME_IS_VALID where appropriate
This commit is contained in:
parent
c2112cb402
commit
8b10be67e4
1 changed files with 3 additions and 1 deletions
|
@ -1997,7 +1997,9 @@ gst_video_decoder_finish_frame (GstVideoDecoder * decoder,
|
|||
|
||||
/* Check for clipping */
|
||||
start = frame->pts;
|
||||
stop = start >= 0 ? frame->pts + frame->duration : GST_CLOCK_TIME_NONE;
|
||||
stop =
|
||||
GST_CLOCK_TIME_IS_VALID (start) ? frame->pts +
|
||||
frame->duration : GST_CLOCK_TIME_NONE;
|
||||
|
||||
segment = &decoder->output_segment;
|
||||
if (gst_segment_clip (segment, GST_FORMAT_TIME, start, stop, &start, &stop)) {
|
||||
|
|
Loading…
Reference in a new issue