diff options
author | Lajos Molnar <lajos@google.com> | 2014-03-28 09:53:46 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2014-03-28 09:58:26 -0700 |
commit | b47558f87ee9bd4fce11a2d5bc213bd1aa9031a8 (patch) | |
tree | 762e884fdd1ab5720f2de39080188cbf1b868d77 /media | |
parent | 1490d5142d8d485ea0d56a9974726fb6dff0a62d (diff) | |
download | frameworks_av-b47558f87ee9bd4fce11a2d5bc213bd1aa9031a8.zip frameworks_av-b47558f87ee9bd4fce11a2d5bc213bd1aa9031a8.tar.gz frameworks_av-b47558f87ee9bd4fce11a2d5bc213bd1aa9031a8.tar.bz2 |
mediaplayer: add temporary developer settings to use NuPlayer as default
Bug: 11784824
Change-Id: Ic98f5fd15ee283d7f581bdc3331d000198ecc9e8
Diffstat (limited to 'media')
-rw-r--r-- | media/libmediaplayerservice/MediaPlayerFactory.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/MediaPlayerFactory.cpp b/media/libmediaplayerservice/MediaPlayerFactory.cpp index 90aed39..74e5013 100644 --- a/media/libmediaplayerservice/MediaPlayerFactory.cpp +++ b/media/libmediaplayerservice/MediaPlayerFactory.cpp @@ -67,6 +67,12 @@ player_type MediaPlayerFactory::getDefaultPlayerType() { return NU_PLAYER; } + // TODO: remove this EXPERIMENTAL developer settings property + if (property_get("persist.sys.media.use-nuplayer", value, NULL) + && !strcasecmp("true", value)) { + return NU_PLAYER; + } + return STAGEFRIGHT_PLAYER; } |