mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
avviddec: don't try to set invalid latency
Avoids warnings when we don't know the latency.
This commit is contained in:
parent
e8c2d76eca
commit
787bd57ea1
1 changed files with 2 additions and 1 deletions
|
@ -502,7 +502,8 @@ gst_ffmpegviddec_set_format (GstVideoDecoder * decoder,
|
|||
done:
|
||||
GST_OBJECT_UNLOCK (ffmpegdec);
|
||||
|
||||
gst_video_decoder_set_latency (decoder, latency, latency);
|
||||
if (GST_CLOCK_TIME_IS_VALID (latency))
|
||||
gst_video_decoder_set_latency (decoder, latency, latency);
|
||||
|
||||
return ret;
|
||||
|
||||
|
|
Loading…
Reference in a new issue