x264enc: when setting fallback decoder latency, set valid min_latency

Min. latency needs to be a valid time, so pass 0 as default
value in the fallback case where we can't determine any latency,
and avoid nasty criticals at runtime.
This commit is contained in:
Tim-Philipp Müller 2012-09-26 01:04:32 +01:00
parent 2c82b981db
commit 4935096912

View file

@ -1397,7 +1397,7 @@ gst_x264_enc_set_latency (GstX264Enc * encoder)
} else {
/* We can't do live as we don't know our latency */
gst_video_encoder_set_latency (GST_VIDEO_ENCODER (encoder),
GST_CLOCK_TIME_NONE, GST_CLOCK_TIME_NONE);
0, GST_CLOCK_TIME_NONE);
}
}