summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/MediaPlayerService.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2009-10-15 13:46:54 -0700
committerAndreas Huber <andih@google.com>2009-10-16 11:22:43 -0700
commit318ad9c1d9d6515026dfc2c021359d27decaa7a1 (patch)
tree28a58c4e3f20528b01c2abd08ba5f62d8755650c /media/libmediaplayerservice/MediaPlayerService.h
parent89e69da4d86348409994c9dafbbb2634ccd7c196 (diff)
downloadframeworks_av-318ad9c1d9d6515026dfc2c021359d27decaa7a1.zip
frameworks_av-318ad9c1d9d6515026dfc2c021359d27decaa7a1.tar.gz
frameworks_av-318ad9c1d9d6515026dfc2c021359d27decaa7a1.tar.bz2
Reimplement the OMX backend for stagefright.
Besides a major cleanup and refactoring, OMX is now a singleton living in the media server, it listens for death notifications of node observers/clients that allocated OMX nodes and performs/attempts cleanup. Changed APIs to conform to the rest of the system.
Diffstat (limited to 'media/libmediaplayerservice/MediaPlayerService.h')
-rw-r--r--media/libmediaplayerservice/MediaPlayerService.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/MediaPlayerService.h b/media/libmediaplayerservice/MediaPlayerService.h
index 7d2e611..931667e 100644
--- a/media/libmediaplayerservice/MediaPlayerService.h
+++ b/media/libmediaplayerservice/MediaPlayerService.h
@@ -183,7 +183,7 @@ public:
virtual sp<IMemory> decode(const char* url, uint32_t *pSampleRate, int* pNumChannels, int* pFormat);
virtual sp<IMemory> decode(int fd, int64_t offset, int64_t length, uint32_t *pSampleRate, int* pNumChannels, int* pFormat);
virtual sp<IMemory> snoop();
- virtual sp<IOMX> createOMX();
+ virtual sp<IOMX> getOMX();
virtual status_t dump(int fd, const Vector<String16>& args);
@@ -281,6 +281,7 @@ private:
mutable Mutex mLock;
SortedVector< wp<Client> > mClients;
int32_t mNextConnId;
+ sp<IOMX> mOMX;
};
// ----------------------------------------------------------------------------