commit | c98242de8f48cba517f529c7a6ea8e8726da1674 | [log] [tgz] |
---|---|---|
author | Dale Sather <dalesat@google.com> | Fri May 24 17:34:49 2019 +0000 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Fri May 24 17:34:49 2019 +0000 |
tree | f98aae431505138fb213c1cceb3c5cab53b273c0 | |
parent | 8897b11e9f1553906f1ffd9717b838554b155811 [diff] |
[mediaplayer] fix panic in mediaplayer_test_util This CL fixes a panic that occurs in mediaplayer_test_util when mediaplayer is destroyed by e.g. killall mediaplayer.cmx. The member variable |video_view_holder_| is cleared when the view dies and subsequently dereferenced in the Layout method. This change adds a guard to the top of Layout to prevent it from running when |video_view_holder_| is null and causes the utility to quit in this case. TEST: fx shell present_view \ fuchsia-pkg://fuchsia.com/mediaplayer_test_util#meta/mediaplayer_test_util.cmx \ --loop \ https://ia800903.us.archive.org/4/items/BigBugBunny_AVCHD/bigBuckBunny_avchd_720p.mp4 fx shell killall mediaplayer.cmx Change-Id: Ia38a9f0fcdc0ab083f27a56351030fc92ac1014f
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
See Getting Started.
See the documentation.