gst/gstutils.c: Add assertion that makes sure src_val is >=0, just like gst_query_new_convert() has. (#315895)

Original commit message from CVS:
Reviewed by: Tim-Philipp Müller  <tim at centricular dot net>
* gst/gstutils.c: (gst_pad_query_convert):
Add assertion that makes sure src_val is >=0, just like
gst_query_new_convert() has. (#315895)
This commit is contained in:
Tim-Philipp Müller 2005-10-01 17:11:07 +00:00
parent 6fcaf333b1
commit 5b5e1702fe
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2005-10-01 Alessandro Decina <alessandro at nnva dot org>
Reviewed by: Tim-Philipp Müller <tim at centricular dot net>
* gst/gstutils.c: (gst_pad_query_convert):
Add assertion that makes sure src_val is >=0, just like
gst_query_new_convert() has. (#315895)
2005-09-30 Edward Hervey <edward@fluendo.com>
* gst/elements/gsttee.c: (gst_tee_do_push), (gst_tee_handle_buffer):

View file

@ -2409,6 +2409,7 @@ 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);