Failing to find a suitable decoder for a stream is reported in three different

modules, I left the one from MediaExtractor::CreateDecoder, since it also
mentions the stream index.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24491 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2008-03-20 12:59:45 +00:00
parent 112d61551e
commit 3bac9fe16c
2 changed files with 4 additions and 3 deletions

View File

@ -677,7 +677,7 @@ BMediaTrack::BMediaTrack(BPrivate::media::MediaExtractor *extractor,
SetupWorkaround();
if (fExtractor->CreateDecoder(fStream, &fDecoder, &fMCI) != B_OK) {
ERROR("BMediaTrack::BMediaTrack: Error: creating decoder failed\n");
TRACE("BMediaTrack::BMediaTrack: Error: creating decoder failed\n");
// we do not set fErr here, because ReadChunk should still work
fDecoder = 0;
return;

View File

@ -94,8 +94,9 @@ PluginManager::CreateDecoder(Decoder **_decoder, const media_format &format)
server_get_decoder_for_format_request request;
server_get_decoder_for_format_reply reply;
request.format = format;
if (B_OK != QueryServer(SERVER_GET_DECODER_FOR_FORMAT, &request, sizeof(request), &reply, sizeof(reply))) {
printf("PluginManager::CreateDecoder: can't get decoder for format\n");
if (B_OK != QueryServer(SERVER_GET_DECODER_FOR_FORMAT, &request,
sizeof(request), &reply, sizeof(reply))) {
TRACE("PluginManager::CreateDecoder: can't get decoder for format\n");
return B_ERROR;
}