[gst-cvs] gstreamer: value: fix fraction range lcopy function

Wim Taymans wtay at kemper.freedesktop.org
Sun Jun 7 06:48:03 PDT 2009


Module: gstreamer
Branch: master
Commit: 19f98d6418ccc12b947d9b310129cee8a3244b74
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=19f98d6418ccc12b947d9b310129cee8a3244b74

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Sun Jun  7 15:43:57 2009 +0200

value: fix fraction range lcopy function

This function seems to be broken for 3.5 years. Luckily nobody ever tried to
make a fraction range object property...

---

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

diff --git a/gst/gstvalue.c b/gst/gstvalue.c
index 51ab3fb..b049ee6 100644
--- a/gst/gstvalue.c
+++ b/gst/gstvalue.c
@@ -1065,7 +1065,7 @@ gst_value_lcopy_fraction_range (const GValue * value, guint n_collect_values,
 
   dest_values[0][0] = gst_value_get_fraction_numerator (&vals[0]);
   dest_values[1][0] = gst_value_get_fraction_denominator (&vals[0]);
-  dest_values[2][0] = gst_value_get_fraction_denominator (&vals[1]);
+  dest_values[2][0] = gst_value_get_fraction_numerator (&vals[1]);
   dest_values[3][0] = gst_value_get_fraction_denominator (&vals[1]);
   return NULL;
 }





More information about the Gstreamer-commits mailing list