GNOME Bugzilla – Bug 315895
gst_pad_query_convert src_val check
Last modified: 2005-10-01 17:11:45 UTC
gst_pad_query_convert doesn't check for src_val >= 0. With srcval < 0 the gst_query_new_convert call in the body fails returning NULL. That makes gst_pad_query (pad, query) with query = NULL print this: (process:22871): GStreamer-CRITICAL **: gst_pad_query: assertion `GST_IS_QUERY (query)' failed also it ends up unreffing a null pointer.
Created attachment 52047 [details] [review] patch
Marking NEW and upping priority due to the patch, and null pointer dereference.
2005-10-01 Alessandro Decina <alessandro at nnva dot org> Reviewed by: Tim-Philipp Muller <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) Cheers -Tim