Bug 205382

Summary: [GStreamer][EME] Notify all elements waiting for CDM attachment
Product: WebKit Reporter: Charlie Turner <cturner>
Component: WebKitGTKAssignee: Charlie Turner <cturner>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, calvaris, cgarcia, commit-queue, eric.carlson, ews-watchlist, glenn, gustavo, jer.noble, menard, philipj, pnormand, sergio, vjaquez
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch none

Charlie Turner
Reported 2019-12-18 01:49:40 PST
[GStreamer][EME] Notify all elements waiting for CDM attachment
Attachments
Patch (10.33 KB, patch)
2019-12-18 08:29 PST, Charlie Turner
no flags
Patch (7.86 KB, patch)
2019-12-19 04:29 PST, Charlie Turner
no flags
Patch (7.86 KB, patch)
2019-12-19 04:31 PST, Charlie Turner
no flags
Patch (7.87 KB, patch)
2019-12-19 04:39 PST, Charlie Turner
no flags
Charlie Turner
Comment 1 2019-12-18 08:29:34 PST
Xabier Rodríguez Calvar
Comment 2 2019-12-19 03:26:06 PST
Comment on attachment 385978 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=385978&action=review > Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:1794 > + auto cdmAttachmentLocker = holdLock(m_cdmAttachmentMutex); > + bool didCDMAttach = m_cdmAttachmentCondition.waitFor(m_cdmAttachmentMutex, 4_s, [this]() { > + return isCDMAttached(); > + }); > + cdmAttachmentLocker.unlockEarly(); I would prefer to take the boolean definition outside and open a nested scope to avoid unlocking early. I think it is less future error prone. > Source/WebCore/platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp:768 > + else > + result = MediaPlayer::SupportsType::IsNotSupported; As a personal preference I would move this upfront and avoid the else. Anyway, this seems to be quite unrelated and I would recommend to land it in a another no-brainer bug.
Charlie Turner
Comment 3 2019-12-19 04:29:59 PST
Charlie Turner
Comment 4 2019-12-19 04:31:09 PST
WebKit Commit Bot
Comment 5 2019-12-19 04:35:20 PST
Comment on attachment 386095 [details] Patch Rejecting attachment 386095 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-01', 'validate-changelog', '--check-oops', '--non-interactive', 386095, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit ChangeLog entry in Source/WebCore/ChangeLog contains OOPS!. Full output: https://webkit-queues.webkit.org/results/13293302
Charlie Turner
Comment 6 2019-12-19 04:39:31 PST
WebKit Commit Bot
Comment 7 2019-12-19 05:25:05 PST
Comment on attachment 386096 [details] Patch Clearing flags on attachment: 386096 Committed r253748: <https://trac.webkit.org/changeset/253748>
WebKit Commit Bot
Comment 8 2019-12-19 05:25:07 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.