Slightly improved error reporting for CreateDecoder (now with error code).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6238 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
#include "MediaExtractor.h"
|
||||
#include "PluginManager.h"
|
||||
#include "debug.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <Autolock.h>
|
||||
|
||||
MediaExtractor::MediaExtractor(BDataIO * source, int32 flags)
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
MediaExtractor::MediaExtractor(BDataIO *source, int32 flags)
|
||||
{
|
||||
CALLED();
|
||||
fSource = source;
|
||||
@@ -192,11 +195,12 @@ MediaExtractor::CreateDecoder(int32 stream, Decoder **decoder, media_codec_info
|
||||
return res;
|
||||
}
|
||||
|
||||
(*decoder)->Setup(new MediaExtractorChunkProvider(this,stream));
|
||||
(*decoder)->Setup(new MediaExtractorChunkProvider(this, stream));
|
||||
|
||||
res = (*decoder)->Setup(&fStreamInfo[stream].encodedFormat, fStreamInfo[stream].infoBuffer , fStreamInfo[stream].infoBufferSize);
|
||||
if (res != B_OK) {
|
||||
printf("MediaExtractor::CreateDecoder Setup failed for stream %ld\n", stream);
|
||||
printf("MediaExtractor::CreateDecoder Setup failed for stream %ld: %ld (%s)\n",
|
||||
stream, res, strerror(res));
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user