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

Sebastian Dröge slomo at kemper.freedesktop.org
Wed Jan 25 04:23:59 PST 2012


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

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 e4fe35f..e2c730e 100644
--- a/gst-libs/gst/video/gstbasevideoencoder.c
+++ b/gst-libs/gst/video/gstbasevideoencoder.c
@@ -1147,7 +1147,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