Fixed 3510047: MediaPlayer ANR if play or seek past end of file.

Change-Id: I733dbf20dc67a5f2c49fbb994291f98e2dce650a
This commit is contained in:
Edwin Wong
2011-08-03 15:43:08 -07:00
parent 851009ab73
commit 7c45fff99a
4 changed files with 17 additions and 0 deletions

View File

@@ -130,6 +130,8 @@ class WVSession;
// direct function call push data model.
// Also buffer allocation routines for using an external allocator
//
typedef void (*WVDecryptCallback)(WVEsSelector esType, void* input, void* output, size_t length, int key);
struct WVCallbacks {
void (*pushData)(unsigned short port, void *buffer, size_t length);
void (*response)(WVSession *session, const std::string &response);
@@ -140,6 +142,7 @@ struct WVCallbacks {
int (*getDeviceID)(char *buffer, size_t size);
int (*getKeyboxPath)(char* path, size_t size);
WVDecryptCallback decrypt;
};
//
@@ -608,6 +611,20 @@ WV_Play(WVSession *session, float scale_requested, float *scale_used, const std:
CLIENT_API WVStatus
WV_Pause(WVSession *session, const std::string &time);
//
// METHOD: WV_Info_GetVersion
//
// Query the version number of the Widevine library
//
// Parameters:
// void
//
// Returns:
// Widevine library build version string
//
CLIENT_API const char *
WV_Info_GetVersion();
//
// METHOD: WV_Info_GetTime
//