Skip to content
Snippets Groups Projects
Commit 49350969 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller :tropical_fish:
Browse files

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.
parent 2c82b981
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment