From 93f300823f2927c51acd754996dc41d4a108ebac Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 27 Aug 2008 03:04:23 +0000 Subject: [PATCH] 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(). --- ChangeLog | 1 + gst/gstquery.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5a3b1de..becc964 100644 --- 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 diff --git a/gst/gstquery.c b/gst/gstquery.c index 615093d..e07a054 100644 --- a/gst/gstquery.c +++ b/gst/gstquery.c @@ -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, -- 2.7.4