[Bug 777734] New: Compile error in basic-tutorial 4
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Jan 25 09:22:35 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=777734
Bug ID: 777734
Summary: Compile error in basic-tutorial 4
Classification: Platform
Product: GStreamer
Version: unspecified
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: documentation
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: brechtdevlieger at hotmail.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
In basic tutorial 4:
The constant GST_TIME_FORMAT has to change to the enum constant GST_FORMAT_TIME
on the following lines:
65, 71, 83, 133.
On the other lines the constant is used correctly as it is used in a string
representation.
This originates from a compilation error:
$ gcc basic-tutorial-4.c -o basic-tutorial-4 `pkg-config --cflags --libs
gstreamer-1.0
In file included from /usr/include/gstreamer-1.0/gst/gstcontrolsource.h:30:0,
from /usr/include/gstreamer-1.0/gst/gstcontrolbinding.h:30,
from /usr/include/gstreamer-1.0/gst/gstobject.h:243,
from /usr/include/gstreamer-1.0/gst/gstelement.h:56,
from /usr/include/gstreamer-1.0/gst/gstbin.h:27,
from /usr/include/gstreamer-1.0/gst/gst.h:35,
from basic-tutorial-4.c:1:
basic-tutorial-4.c: In function ‘main’:
/usr/include/gstreamer-1.0/gst/gstclock.h:228:25: error: incompatible type for
argument 2 of ‘gst_element_query_position’
#define GST_TIME_FORMAT "u:%02u:%02u.%09u"
^
basic-tutorial-4.c:65:56: note: in expansion of macro ‘GST_TIME_FORMAT’
if (!gst_element_query_position (data.playbin, GST_TIME_FORMAT,
¤
^
In file included from /usr/include/gstreamer-1.0/gst/gst.h:86:0,
from basic-tutorial-4.c:1:
/usr/include/gstreamer-1.0/gst/gstutils.h:907:25: note: expected ‘GstFormat
{aka enum <anonymous>}’ but argument is of type ‘char *’
gboolean gst_element_query_position (GstElement *element,
G
^
In file included from /usr/include/gstreamer-1.0/gst/gstcontrolsource.h:30:0,
from /usr/include/gstreamer-1.0/gst/gstcontrolbinding.h:30,
from /usr/include/gstreamer-1.0/gst/gstobject.h:243,
from /usr/include/gstreamer-1.0/gst/gstelement.h:56,
from /usr/include/gstreamer-1.0/gst/gstbin.h:27,
from /usr/include/gstreamer-1.0/gst/gst.h:35,
from basic-tutorial-4.c:1:
/usr/include/gstreamer-1.0/gst/gstclock.h:228:25: error: incompatible type for
argument 2 of ‘gst_element_query_duration’
#define GST_TIME_FORMAT "u:%02u:%02u.%09u"
^
basic-tutorial-4.c:71:58: note: in expansion of macro ‘GST_TIME_FORMAT’
if (!gst_element_query_duration (data.playbin, GST_TIME_FORMAT,
&data
^
In file included from /usr/include/gstreamer-1.0/gst/gst.h:86:0,
from basic-tutorial-4.c:1:
/usr/include/gstreamer-1.0/gst/gstutils.h:908:25: note: expected ‘GstFormat
{aka enum <anonymous>}’ but argument is of type ‘char *’
gboolean gst_element_query_duration (GstElement *element,
G
^
--
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