diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-03-20 13:42:32 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-03-20 13:42:32 +0000 |
commit | 197fe6d0d1b3a9c2d8816d1540b3b9914e6cbf1a (patch) | |
tree | 6c1e98926f470b431640e421ece68059ae188d38 | |
parent | 9b6843092a716207393ca990bf0235ff6b6771ce (diff) |
gio: add cast to avoid compiler warning with old GLib versions
g_file_input_stream_query_info() had char * instead of const char *
as attribute argument before 2.20.
Fixes #613387, spotted by tetsuyayasuda@gmail.com
-rw-r--r-- | ext/gio/gstgiobasesrc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/gio/gstgiobasesrc.c b/ext/gio/gstgiobasesrc.c index 133e12c26..85d94a07b 100644 --- a/ext/gio/gstgiobasesrc.c +++ b/ext/gio/gstgiobasesrc.c @@ -189,8 +189,9 @@ gst_gio_base_src_get_size (GstBaseSrc * base_src, guint64 * size) GFileInfo *info; GError *err = NULL; + /* FIXME: remove (char *) cast once we depend on GLib >= 2.20 */ info = g_file_input_stream_query_info (G_FILE_INPUT_STREAM (src->stream), - G_FILE_ATTRIBUTE_STANDARD_SIZE, src->cancel, &err); + (char *) G_FILE_ATTRIBUTE_STANDARD_SIZE, src->cancel, &err); if (info != NULL) { *size = g_file_info_get_size (info); |