Summary: | [BlackBerry] Adapt to changes in the platform media player API | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Robin Cao <robin.webkit> | ||||
Component: | WebKit BlackBerry | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | eric.carlson, feature-media-reviews, mifenton, rwlbuis, staikos, tonikitoo, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Other | ||||||
OS: | Other | ||||||
Attachments: |
|
Description
Robin Cao
2012-08-17 03:52:13 PDT
Created attachment 159094 [details]
patch
Comment on attachment 159094 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=159094&action=review > Source/WebCore/platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:175 > - m_platformPlayer->cancelLoad(); > + if (m_platformPlayer) > + m_platformPlayer->cancelLoad(); I think this and all the other null checks are changes in the behavior. Why is that needed now? Comment on attachment 159094 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=159094&action=review This looks OK to me, but I know absolutely nothing about either the old or new platform player so I will let someone else give it a real review. >> Source/WebCore/platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:175 >> + m_platformPlayer->cancelLoad(); > > I think this and all the other null checks are changes in the behavior. Why is that needed now? Because m_platformPlayer is allocated in load rather than in the constructor? Comment on attachment 159094 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=159094&action=review >>> Source/WebCore/platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:175 >>> + m_platformPlayer->cancelLoad(); >> >> I think this and all the other null checks are changes in the behavior. Why is that needed now? > > Because m_platformPlayer is allocated in load rather than in the constructor? Very reasonable. Comment on attachment 159094 [details] patch Clearing flags on attachment: 159094 Committed r126008: <http://trac.webkit.org/changeset/126008> All reviewed patches have been landed. Closing bug. |