Media Codec API just got a visit from the coding style police.
We now use "const" for the chunk buffer pointer returned by GetNextChunk, because the buffer is not supposed to be modified by the codec. size_t is used for the size where applicable. This matches BMediaDecoder. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13361 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -14,8 +14,8 @@ struct stream_info
|
||||
status_t status;
|
||||
void * cookie;
|
||||
bool hasCookie;
|
||||
void * infoBuffer;
|
||||
int32 infoBufferSize;
|
||||
const void * infoBuffer;
|
||||
size_t infoBufferSize;
|
||||
ChunkCache * chunkCache;
|
||||
media_format encodedFormat;
|
||||
};
|
||||
@@ -40,7 +40,7 @@ public:
|
||||
int64 *frame, bigtime_t *time);
|
||||
|
||||
status_t GetNextChunk(int32 stream,
|
||||
void **chunkBuffer, int32 *chunkSize,
|
||||
const void **chunkBuffer, size_t *chunkSize,
|
||||
media_header *mediaHeader);
|
||||
|
||||
status_t CreateDecoder(int32 stream, Decoder **decoder, media_codec_info *mci);
|
||||
|
||||
Reference in New Issue
Block a user