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 02:59:59 +0000 (02:59 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 27 Aug 2008 02:59:59 +0000 (02:59 +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.

ChangeLog
gst/gstutils.c

index 70f6953..5a3b1de 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-08-26  David Schleef  <ds@schleef.org>
+
+       * 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.
+
 2008-08-25  Wim Taymans  <wim.taymans@collabora.co.uk>
 
        * gst/gstclock.c: (gst_clock_add_observation):
index a48b849..b28f6a1 100644 (file)
@@ -2788,7 +2788,6 @@ gst_pad_query_convert (GstPad * pad, GstFormat src_format, gint64 src_val,
   gboolean ret;
 
   g_return_val_if_fail (GST_IS_PAD (pad), FALSE);
-  g_return_val_if_fail (src_val >= 0, FALSE);
   g_return_val_if_fail (dest_format != NULL, FALSE);
   g_return_val_if_fail (dest_val != NULL, FALSE);