mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 11:29:55 +00:00
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:
parent
2c82b981db
commit
4935096912
1 changed files with 1 additions and 1 deletions
|
@ -1397,7 +1397,7 @@ gst_x264_enc_set_latency (GstX264Enc * encoder)
|
||||||
} else {
|
} else {
|
||||||
/* We can't do live as we don't know our latency */
|
/* We can't do live as we don't know our latency */
|
||||||
gst_video_encoder_set_latency (GST_VIDEO_ENCODER (encoder),
|
gst_video_encoder_set_latency (GST_VIDEO_ENCODER (encoder),
|
||||||
GST_CLOCK_TIME_NONE, GST_CLOCK_TIME_NONE);
|
0, GST_CLOCK_TIME_NONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue