GNOME Bugzilla – Bug 627826
GstInt64Range type
Last modified: 2010-09-01 09:08:35 UTC
Just like GstIntRange but for 64bits integers. Would be needed to fix bug 623121.
Created attachment 168716 [details] [review] gstvalue: new GstInt64Range type fixes bug 627826
Created attachment 168735 [details] [review] gstvalue: new GstInt64Range type new GstInt64Range to store gint64 ranges. API: GST_TYPE_INT64_RANGE API: gst_value_set_int64_range API: gst_value_get_int64_range_min API: gst_value_get_int64_range_max Fixes bug 627826 (added new API in commit message)
Review of attachment 168735 [details] [review]: Looks good in general, some minor comments below :) Also, while we're at it, it might make sense to add real C types for the ranges, fractions, lists, arrays and fourccs. But that's for another patch. Maybe you want to use that for the buffering ranges though ::: gst/gststructure.c @@ +1857,3 @@ + g_value_init (value, range_type); + gst_value_set_int64_range (value, gst_g_value_get_int_unchecked (&value1), + gst_g_value_get_int_unchecked (&value2)); Use gst_g_value_get_int64_unchecked() here, otherwise you'll drop 32 bits of the value ::: tests/check/gst/gstvalue.c @@ +2427,3 @@ + g_strdup_printf ("[ 0, %" G_GINT64_FORMAT " ]", (gint64) G_MAXINT), + g_strdup_printf ("[ 5, %" G_GINT64_FORMAT " ]", (gint64) G_MAXINT32), + g_strdup_printf ("[ 5, %" G_GINT64_FORMAT " ]", G_MAXINT64), You're leaking these strings
Created attachment 168783 [details] [review] gstvalue: new GstInt64Range type new GstInt64Range to store gint64 ranges. API: GST_TYPE_INT64_RANGE API: gst_value_set_int64_range API: gst_value_get_int64_range_min API: gst_value_get_int64_range_max Fixes bug 627826 Fixed the two issues pointed out by Sebastian.
commit 0107c7e793fed42eecf2797c7837c1f8f2059180 Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Wed Sep 1 11:06:57 2010 +0200 gstvalue: Fix memory leaks in the int64range tests commit b2e6379be832d92a0363291fe55c3f4670e2dde9 Author: Philippe Normand <pnormand@igalia.com> Date: Tue Aug 24 12:27:30 2010 +0200 gstvalue: Add new GstInt64Range type new GstInt64Range to store gint64 ranges. API: GST_TYPE_INT64_RANGE API: gst_value_set_int64_range API: gst_value_get_int64_range_min API: gst_value_get_int64_range_max Fixes bug #627826.