- Implemented MediaExtractor::Copyright, which just calls the instantiated reader

- Implemented BMediaFile::Copyright, which just calls Copyright() of the extractor. So this is just a simple pass through.
- Style cleanup (mostly whitespaces)

Problem is that our readers currently return the copyright of the source code, not the copyright of the MediaFile itself, like the BeBook documents. Thus, we might need to change all readers to return appropiate data or behave differently for Haiku readers.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25356 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Maurice Kalinowski
2008-05-07 21:09:56 +00:00
parent 3db71143ea
commit 8b1e3b1af8
3 changed files with 48 additions and 38 deletions
+10 -7
View File
@@ -27,11 +27,13 @@ public:
~MediaExtractor();
status_t InitCheck();
void GetFileFormatInfo(media_file_format *mfi) const;
int32 StreamCount();
const char* Copyright();
const media_format * EncodedFormat(int32 stream);
int64 CountFrames(int32 stream) const;
bigtime_t Duration(int32 stream) const;
@@ -40,12 +42,13 @@ public:
int64 *frame, bigtime_t *time);
status_t FindKeyFrame(int32 stream, uint32 seekTo,
int64 *frame, bigtime_t *time) const;
status_t GetNextChunk(int32 stream,
const void **chunkBuffer, size_t *chunkSize,
media_header *mediaHeader);
status_t CreateDecoder(int32 stream, Decoder **decoder, media_codec_info *mci);
status_t CreateDecoder(int32 stream, Decoder **decoder,
media_codec_info *mci);
private:
static int32 extractor_thread(void *arg);
@@ -53,14 +56,14 @@ private:
private:
status_t fErr;
sem_id fExtractorWaitSem;
thread_id fExtractorThread;
volatile bool fTerminateExtractor;
BDataIO *fSource;
Reader *fReader;
stream_info * fStreamInfo;
int32 fStreamCount;