[Bug 675869] [hlsdemux] potential dead-lock using GstTask

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri May 11 07:26:39 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=675869
  GStreamer | gst-plugins-bad | git

--- Comment #4 from Gil Pedersen <bugzilla.gnome at gpost.dk> 2012-05-11 14:26:34 UTC ---
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > hlsdemux also tries to join without taking and releasing the task lock first, I
> > > suspect this is your real problem.
> > 
> > I don't see how that would solve the problem since the other thread could
> > potentially do anything between the release and the join.
> 
> not if you wait for the task lock because then you are sure that the other
> thread is stopped and waiting and that you can do your join without any other
> thread interfering.

Sorry if I'm unclear, but I'm talking about a third thread which tries to
change the state, not the task thread.

Also, the join is documented to stop the task thread, so this should never be
necessary.

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