From 787bd57ea1c750a46ccfe3140eec189d41f1bef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 25 Sep 2012 18:29:08 +0100 Subject: [PATCH] avviddec: don't try to set invalid latency Avoids warnings when we don't know the latency. --- ext/libav/gstavviddec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/libav/gstavviddec.c b/ext/libav/gstavviddec.c index c382832c79..aea2c280ad 100644 --- a/ext/libav/gstavviddec.c +++ b/ext/libav/gstavviddec.c @@ -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;