[Bug 787974] New: player: race condition when seeking

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Sep 21 08:06:59 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=787974

            Bug ID: 787974
           Summary: player: race condition when seeking
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: philippe_renon at yahoo.fr
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

The race condition happens between seek() and state_changed_cb()

Under some conditions, the state_changed_cb() can end up removing the
seek_source while it is being created and setup by seek(). This will lead to a
null pointer de-reference in seek().

Adding a sleep (of, say, 250ms) after 
   self->seek_source = g_timeout_source_new (delay);
will greatly increase the probability of triggering the race condition.

Taking the player lock while creating and setting up the seek_source seems to
address the issue.

I'll submit a patch later.

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