summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2016-02-18 08:25:47 -0800
committerThe Android Automerger <android-build@google.com>2016-03-01 15:25:32 -0800
commit5db73079cbd9bbe5bf2c6fb7d029537a085170ca (patch)
tree28e23b0f020d24e96c59fb678ee413b0cde7adc5 /include
parentb7c8681b7f3c093b1c0f667007c490d9c563655c (diff)
downloadframeworks_av-5db73079cbd9bbe5bf2c6fb7d029537a085170ca.zip
frameworks_av-5db73079cbd9bbe5bf2c6fb7d029537a085170ca.tar.gz
frameworks_av-5db73079cbd9bbe5bf2c6fb7d029537a085170ca.tar.bz2
Get service by value instead of reference
to prevent a cleared service binder from being used. Bug: 26040840 Change-Id: Ifb5483c55b172d3553deb80dbe27f2204b86ecdb
Diffstat (limited to 'include')
-rw-r--r--include/media/mediametadataretriever.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/media/mediametadataretriever.h b/include/media/mediametadataretriever.h
index f655f35..8ed07ee 100644
--- a/include/media/mediametadataretriever.h
+++ b/include/media/mediametadataretriever.h
@@ -82,7 +82,7 @@ public:
const char* extractMetadata(int keyCode);
private:
- static const sp<IMediaPlayerService>& getService();
+ static const sp<IMediaPlayerService> getService();
class DeathNotifier: public IBinder::DeathRecipient
{