Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r163871 - [GStreamer] High playback rate causes crash
https://bugs.webkit.org/show_bug.cgi?id=128453 Patch by Piotr Grad <p.grad@samsung.com> on 2014-02-11 Reviewed by Philippe Normand. Source/WebCore: To high playback rate passed to GStreamer was causing crash. Added guard in setRate method. Test: media/video-extreme-playbackrate-crash.html * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: (WebCore::MediaPlayerPrivateGStreamer::setRate): LayoutTests: Test checks if passing high playback rate causes crash. * media/video-extreme-playbackrate-crash-expected.txt: Added. * media/video-extreme-playbackrate-crash.html: Added.
- Loading branch information
1 parent
6f17a95
commit b6f7369
Showing
5 changed files
with
61 additions
and
0 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
6 changes: 6 additions & 0 deletions
6
LayoutTests/media/video-extreme-playbackrate-crash-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
Test that passing extreme playback rate does not cause crash. | ||
|
||
EVENT(canplaythrough) | ||
END OF TEST | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script src=media-file.js></script> | ||
<script src=video-test.js></script> | ||
<script> | ||
function start() { | ||
findMediaElement(); | ||
video.src = findMediaFile("video", "content/test"); | ||
waitForEventOnce('canplaythrough', canPlayThrough); | ||
} | ||
|
||
function canPlayThrough() { | ||
video.playbackRate = 10000000; | ||
video.play(); | ||
video.playbackRate = -10000000; | ||
endTest(); | ||
} | ||
</script> | ||
</head> | ||
<body onload="start()"> | ||
<video></video> | ||
<p>Test that passing extreme playback rate does not cause crash.</p> | ||
</body> | ||
</html> |
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