[Bug 683476] Segmentation Fault observed

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Sep 6 03:36:07 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=683476
  GStreamer | gstreamer (core) | unspecified

Tim-Philipp Müller <t.i.m> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |INVALID
   Target Milestone|HEAD                        |NONE

--- Comment #5 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2012-09-06 10:36:05 UTC ---
The bug is in your code:


  if (gst_element_query_position (pipeline, (GstFormat *)GST_FORMAT_TIME, &pos)

You can't just cast like that, it needs to be (in 0.10):

 GstFormat format = GST_FORMAT_TIME;

  if (gst_element_query_position (pipeline, &formt, &pos)) {
   ...
  }

I'm sure you could have found working sample code somewhere ;)

(Admittedly the API is a bit weird, we've fixed it in 1.0).

-- 
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