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.
* gst/gstquery.c: Same, gst_query_new_convert().
This commit is contained in:
David Schleef 2008-08-27 03:04:23 +00:00
parent 34087e8b17
commit 93f300823f
2 changed files with 1 additions and 2 deletions

View file

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

View 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,