From: David Schleef Date: Wed, 27 Aug 2008 03:04:23 +0000 (+0000) Subject: gst/gstutils.c: Remove check in gst_pad_query_convert() that src_val must be positive... X-Git-Tag: RELEASE-0_10_21~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93f300823f2927c51acd754996dc41d4a108ebac;p=platform%2Fupstream%2Fgstreamer.git 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(). --- 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,