[Webkit-unassigned] [Bug 41340] New: [GStreamer] Subtle race condition during seeks

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 29 03:56:48 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=41340

           Summary: [GStreamer] Subtle race condition during seeks
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media Elements
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: slomo at circular-chaos.org


Hi,
attached patch fixes a race condition in WebKitWebSourceGStreamer.

The problem here is, that the callback from g_timeout_add() could be called before g_timeout_add() returns. This causes the seekID timeout ID to be set by 0 by the callback and afterwards to the timeout ID of the already called callback. This problem looks rather obscure but can really easy happen on multicore systems and causes the playback to stop.

The other, more minor problem, that is fixed by this patch is, that the source *must* not emit EOS if the HTTP stream finishes during a seek. Due to the multiple threads involved here this confuses GStreamer's appsink and again causes the playback to stop.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list