gst/gstutils.c: Remove check in gst_pad_query_convert() that src_val must be positive...
authorDavid Schleef <ds@schleef.org>
Wed, 27 Aug 2008 03:04:23 +0000 (03:04 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 27 Aug 2008 03:04:23 +0000 (03:04 +0000)
Original commit message from CVS:
* gst/gstutils.c: Remove check in gst_pad_query_convert() that
src_val must be positive, because that's not a requirement.
This causes problems with converting negative granulepos
values for Dirac.
* gst/gstquery.c: Same, gst_query_new_convert().

ChangeLog
gst/gstquery.c

index 5a3b1de..becc964 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
          src_val must be positive, because that's not a requirement.
          This causes problems with converting negative granulepos
          values for Dirac.
+       * gst/gstquery.c: Same, gst_query_new_convert().
 
 2008-08-25  Wim Taymans  <wim.taymans@collabora.co.uk>
 
index 615093d..e07a054 100644 (file)
@@ -642,8 +642,6 @@ gst_query_new_convert (GstFormat src_format, gint64 value,
   GstQuery *query;
   GstStructure *structure;
 
-  g_return_val_if_fail (value >= 0, NULL);
-
   structure = gst_structure_empty_new ("GstQueryConvert");
   gst_structure_id_set (structure,
       GST_QUARK (SRC_FORMAT), GST_TYPE_FORMAT, src_format,