[Bug 740001] task: race condition when pausing and stopping

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Nov 12 03:03:51 PST 2014


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

Sebastian Dröge (slomo) <slomo> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|HEAD                        |1.5.1

--- Comment #1 from Sebastian Dröge (slomo) <slomo at coaxion.net> 2014-11-12 11:03:46 UTC ---
commit 6c079367f12ad5ded5e73e9b0a20d03ac1402f29
Author: Haakon Sporsheim <haakon.sporsheim at gmail.com>
Date:   Wed Nov 12 11:30:51 2014 +0100

    task: Fix pause/stop race condition

    If a task thread is calling pause on it self and the
    controlling/"main" thread stops the task, it could end in a race
    where gst_task_func loops and then checks for paused after the
    controlling thread just changed the task state to stopped.
    Hence the task would actually call func again even though it was
    both paused and stopped.

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

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