diff --git a/ext/vpx/gstvp8enc.c b/ext/vpx/gstvp8enc.c index 06b2bd02f6..5fca8f6b10 100644 --- a/ext/vpx/gstvp8enc.c +++ b/ext/vpx/gstvp8enc.c @@ -1681,8 +1681,7 @@ gst_vp8_enc_set_format (GstVideoEncoder * video_encoder, } if (GST_VIDEO_INFO_FPS_D (info) == 0 || GST_VIDEO_INFO_FPS_N (info) == 0) { - gst_video_encoder_set_latency (video_encoder, GST_CLOCK_TIME_NONE, - GST_CLOCK_TIME_NONE); + gst_video_encoder_set_latency (video_encoder, 0, GST_CLOCK_TIME_NONE); } else { gst_video_encoder_set_latency (video_encoder, 0, gst_util_uint64_scale (encoder->cfg.g_lag_in_frames, diff --git a/ext/vpx/gstvp9enc.c b/ext/vpx/gstvp9enc.c index d08a88f75c..84b4b2228e 100644 --- a/ext/vpx/gstvp9enc.c +++ b/ext/vpx/gstvp9enc.c @@ -1660,8 +1660,7 @@ gst_vp9_enc_set_format (GstVideoEncoder * video_encoder, } if (GST_VIDEO_INFO_FPS_D (info) == 0 || GST_VIDEO_INFO_FPS_N (info) == 0) { - gst_video_encoder_set_latency (video_encoder, GST_CLOCK_TIME_NONE, - GST_CLOCK_TIME_NONE); + gst_video_encoder_set_latency (video_encoder, 0, GST_CLOCK_TIME_NONE); } else { gst_video_encoder_set_latency (video_encoder, 0, gst_util_uint64_scale (encoder->cfg.g_lag_in_frames,