mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01: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,6 +502,7 @@ gst_ffmpegviddec_set_format (GstVideoDecoder * decoder,
|
||||||
done:
|
done:
|
||||||
GST_OBJECT_UNLOCK (ffmpegdec);
|
GST_OBJECT_UNLOCK (ffmpegdec);
|
||||||
|
|
||||||
|
if (GST_CLOCK_TIME_IS_VALID (latency))
|
||||||
gst_video_decoder_set_latency (decoder, latency, latency);
|
gst_video_decoder_set_latency (decoder, latency, latency);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue