mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 05:28:48 +00:00
basevideoencoder: fix parameter sanity check
This commit is contained in:
parent
1c0ccc45f4
commit
b5c5fb58a3
1 changed files with 1 additions and 1 deletions
|
@ -1147,7 +1147,7 @@ void
|
||||||
gst_base_video_encoder_set_latency (GstBaseVideoEncoder * base_video_encoder,
|
gst_base_video_encoder_set_latency (GstBaseVideoEncoder * base_video_encoder,
|
||||||
GstClockTime min_latency, GstClockTime max_latency)
|
GstClockTime min_latency, GstClockTime max_latency)
|
||||||
{
|
{
|
||||||
g_return_if_fail (min_latency >= 0);
|
g_return_if_fail (GST_CLOCK_TIME_IS_VALID (min_latency));
|
||||||
g_return_if_fail (max_latency >= min_latency);
|
g_return_if_fail (max_latency >= min_latency);
|
||||||
|
|
||||||
GST_OBJECT_LOCK (base_video_encoder);
|
GST_OBJECT_LOCK (base_video_encoder);
|
||||||
|
|
Loading…
Reference in a new issue