Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gst-docs gst-docs
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 57
    • Issues 57
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamer
  • gst-docsgst-docs
  • Issues
  • #44

Closed
Open
Created Aug 11, 2019 by Askar Safin@safinaskarContributor

basic-tutorial-13.c doesn't compile

I opened https://gstreamer.freedesktop.org/documentation/tutorials/basic/playback-speed.html?gi-language=c , then I copy-pasted basic-tutorial-13.c and tried to compile it. I got (on recent debian sid):

# gcc basic-tutorial-13.c -o basic-tutorial-13 `pkg-config --cflags --libs gstreamer-1.0`
basic-tutorial-13.c: In function ‘send_seek_event’:
basic-tutorial-13.c:21:52: error: incompatible type for argument 2 of ‘gst_element_query_position’
   if (!gst_element_query_position (data->pipeline, &format, &position)) {
                                                    ^~~~~~~
In file included from /usr/include/gstreamer-1.0/gst/gst.h:90,
                 from basic-tutorial-13.c:3:
/usr/include/gstreamer-1.0/gst/gstutils.h:1051:89: note: expected ‘GstFormat’ {aka ‘enum <anonymous>’} but argument is of type ‘GstFormat *’ {aka ‘enum <anonymous> *’}
     gst_element_query_position      (GstElement *element, GstFormat format, gint64 *cur);
                                                           ~~~~~~~~~~^~~~~~
Assignee
Assign to
Time tracking