Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r234979 - [GTK] Never return an uninitialized ImageGStreamer ob…
…ject. https://bugs.webkit.org/show_bug.cgi?id=188305 Reviewed by Philippe Normand. The single caller was already checking for a null return value, so make that check actually do something. Also remove the null-check on the return value of image(), which asserted that it would never return null. Test: fast/canvas/canvas-createPattern-video-loading.html * platform/graphics/gstreamer/ImageGStreamer.h: (WebCore::ImageGStreamer::createImage): Return null if m_image wasn't created. (WebCore::ImageGStreamer::image): Return a reference. (WebCore::ImageGStreamer::rect): Always assert that m_image is present. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp: (WebCore::MediaPlayerPrivateGStreamerBase::paint): Update for new signature.
- Loading branch information
1 parent
d1eb409
commit 6405cdb
Showing
3 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters