[0.10] gst-plugins-bad: basevideoencoder: fix parameter sanity check

Tim Müller tpm at kemper.freedesktop.org
Mon Jan 30 04:41:45 PST 2012


Module: gst-plugins-bad
Branch: 0.10
Commit: bd47988b2910d62aec7923c1ac062e49ac85ea6a
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=bd47988b2910d62aec7923c1ac062e49ac85ea6a

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Mon Jan 23 13:54:32 2012 +0100

basevideoencoder: fix parameter sanity check

---

 gst-libs/gst/video/gstbasevideoencoder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gst-libs/gst/video/gstbasevideoencoder.c b/gst-libs/gst/video/gstbasevideoencoder.c
index c14d7a1..34d0956 100644
--- a/gst-libs/gst/video/gstbasevideoencoder.c
+++ b/gst-libs/gst/video/gstbasevideoencoder.c
@@ -1152,7 +1152,7 @@ void
 gst_base_video_encoder_set_latency (GstBaseVideoEncoder * base_video_encoder,
     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);
 
   GST_OBJECT_LOCK (base_video_encoder);



More information about the gstreamer-commits mailing list