query: const-ify formats arguments to gst_query_set_formatsv()

This commit is contained in:
Tim-Philipp Müller 2011-04-19 11:48:05 +01:00
parent 94c0bc74ce
commit f4b178af3b
2 changed files with 3 additions and 2 deletions

View file

@ -1001,7 +1001,8 @@ gst_query_set_formats (GstQuery * query, gint n_formats, ...)
* Since: 0.10.4
*/
void
gst_query_set_formatsv (GstQuery * query, gint n_formats, GstFormat * formats)
gst_query_set_formatsv (GstQuery * query, gint n_formats,
const GstFormat * formats)
{
GValue list = { 0, };
gint i;

View file

@ -300,7 +300,7 @@ void gst_query_parse_seeking (GstQuery *query, GstFormat *for
/* formats query */
GstQuery* gst_query_new_formats (void);
void gst_query_set_formats (GstQuery *query, gint n_formats, ...);
void gst_query_set_formatsv (GstQuery *query, gint n_formats, GstFormat *formats);
void gst_query_set_formatsv (GstQuery *query, gint n_formats, const GstFormat *formats);
void gst_query_parse_formats_length (GstQuery *query, guint *n_formats);
void gst_query_parse_formats_nth (GstQuery *query, guint nth, GstFormat *format);