[gstreamer-bugs] [Bug 613387] New: Compile error on gcc-4.3.2
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Sat Mar 20 04:55:47 PDT 2010
https://bugzilla.gnome.org/show_bug.cgi?id=613387
GStreamer | gst-plugins-base | git
Summary: Compile error on gcc-4.3.2
Classification: Desktop
Product: GStreamer
Version: git
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-base
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: tetsuyayasuda at gmail.com
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME target: ---
GNOME version: ---
Following compile error is happen on my environment.
>>>
[...]
make[3]: Entering directory
`/home/tetsuya/Work/gitrepos/gst-plugins-base/ext/gio'
CC libgstgio_la-gstgiobasesrc.lo
cc1: warnings being treated as errors
gstgiobasesrc.c: In function 'gst_gio_base_src_get_size':
gstgiobasesrc.c:193: error: passing argument 2 of
'g_file_input_stream_query_info' discards qualifiers from pointer target type
[...]
<<<
My environment:
Fedora 10
gcc (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7)
gstreamer-0.10 (built on git-master)
I success to compile it if following patch is applied.
>>>
diff --git a/ext/gio/gstgiobasesrc.c b/ext/gio/gstgiobasesrc.c
index 133e12c..bcafa3d 100644
--- a/ext/gio/gstgiobasesrc.c
+++ b/ext/gio/gstgiobasesrc.c
@@ -190,7 +190,7 @@ gst_gio_base_src_get_size (GstBaseSrc * base_src, guint64 *
size)
GError *err = NULL;
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);
<<<
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the Gstreamer-bugs
mailing list