avviddec: don't try to set invalid latency

Avoids warnings when we don't know the latency.
This commit is contained in:
Tim-Philipp Müller 2012-09-25 18:29:08 +01:00
parent e8c2d76eca
commit 787bd57ea1

View file

@ -502,6 +502,7 @@ gst_ffmpegviddec_set_format (GstVideoDecoder * decoder,
done:
GST_OBJECT_UNLOCK (ffmpegdec);
if (GST_CLOCK_TIME_IS_VALID (latency))
gst_video_decoder_set_latency (decoder, latency, latency);
return ret;