summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNipun Kwatra <nkwatra@google.com>2010-08-27 14:19:01 -0700
committerNipun Kwatra <nkwatra@google.com>2010-08-27 18:19:22 -0700
commit4caa5782afbf07da01532f7b8744157f0e92d01e (patch)
treebbeaeb894cd0c588c1cf90693c9acc62f0fbe558 /include
parentc7e5094ece8083bcaa8160564655df986126f4bd (diff)
downloadframeworks_av-4caa5782afbf07da01532f7b8744157f0e92d01e.zip
frameworks_av-4caa5782afbf07da01532f7b8744157f0e92d01e.tar.gz
frameworks_av-4caa5782afbf07da01532f7b8744157f0e92d01e.tar.bz2
client_id->clientId, bugfix for signaling of read abort on stop.
- changed client_id->clientId, mClient_id->mClientId - there was a bug in the condition for calling signalReadComplete_lock() in stop. We should call it only when !mLastReadCompleted and also if the current client has not already completed its read (this second check was missing before). Change-Id: I9a57cf6b5c6f3260883a6c74d0c7b22f675c422e
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/MediaSourceSplitter.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/media/stagefright/MediaSourceSplitter.h b/include/media/stagefright/MediaSourceSplitter.h
index 671cdf5..568f4c2 100644
--- a/include/media/stagefright/MediaSourceSplitter.h
+++ b/include/media/stagefright/MediaSourceSplitter.h
@@ -115,23 +115,23 @@ private:
// Functions used by Client to implement the MediaSource interface.
// If the real source has not been started yet by any client, starts it.
- status_t start(int client_id, MetaData *params);
+ status_t start(int clientId, MetaData *params);
// Stops the real source after all clients have called stop().
- status_t stop(int client_id);
+ status_t stop(int clientId);
// returns the real source's getFormat().
- sp<MetaData> getFormat(int client_id);
+ sp<MetaData> getFormat(int clientId);
// If the client's desired buffer has already been read into
// mLastReadMediaBuffer, points the buffer to that. Otherwise if it is the
// master client, reads the buffer from source or else waits for the master
// client to read the buffer and uses that.
- status_t read(int client_id,
+ status_t read(int clientId,
MediaBuffer **buffer, const MediaSource::ReadOptions *options = NULL);
// Not implemented right now.
- status_t pause(int client_id);
+ status_t pause(int clientId);
// Function which reads a buffer from the real source into
// mLastReadMediaBuffer
@@ -140,11 +140,11 @@ private:
// Waits until read from the real source has been completed.
// _lock means that the function should be called when the thread has already
// obtained the lock for the mutex mLock.
- void waitForReadFromSource_lock(int32_t client_id);
+ void waitForReadFromSource_lock(int32_t clientId);
// Waits until all clients have read the current buffer in
// mLastReadCompleted.
- void waitForAllClientsLastRead_lock(int32_t client_id);
+ void waitForAllClientsLastRead_lock(int32_t clientId);
// Each client calls this after it completes its read(). Once all clients
// have called this for the current buffer, the function calls
@@ -163,7 +163,7 @@ private:
public:
// Constructor stores reference to the parent MediaSourceSplitter and it
// client id.
- Client(sp<MediaSourceSplitter> splitter, int32_t client_id);
+ Client(sp<MediaSourceSplitter> splitter, int32_t clientId);
// MediaSource interface
virtual status_t start(MetaData *params = NULL);
@@ -182,7 +182,7 @@ private:
sp<MediaSourceSplitter> mSplitter;
// Id of this client.
- int32_t mClient_id;
+ int32_t mClientId;
};
friend class Client;