gst/gstutils.c: Remove check in gst_pad_query_convert() that src_val must be positive, because that's not a requirement.

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.
This commit is contained in:
David Schleef 2008-08-27 02:59:59 +00:00
parent 207bbf4f14
commit 34087e8b17
2 changed files with 7 additions and 1 deletions

View file

@ -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):

View 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);