mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
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
This commit is contained in:
parent
9b6843092a
commit
197fe6d0d1
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue