Improved error logging.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31476 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -267,12 +267,16 @@ VideoConsumer::CreateBuffers(const media_format& format)
|
|||||||
|
|
||||||
BBuffer *buffer = NULL;
|
BBuffer *buffer = NULL;
|
||||||
if ((status = fBuffers->AddBuffer(info, &buffer)) != B_OK) {
|
if ((status = fBuffers->AddBuffer(info, &buffer)) != B_OK) {
|
||||||
ERROR("VideoConsumer::CreateBuffers - ERROR ADDING BUFFER TO GROUP\n");
|
ERROR("VideoConsumer::CreateBuffers - ERROR ADDING BUFFER "
|
||||||
|
"TO GROUP (%ld): %s\n", i, strerror(status));
|
||||||
return status;
|
return status;
|
||||||
} else
|
} else {
|
||||||
PROGRESS("VideoConsumer::CreateBuffers - SUCCESSFUL ADD BUFFER TO GROUP\n");
|
PROGRESS("VideoConsumer::CreateBuffers - SUCCESSFUL ADD "
|
||||||
|
"BUFFER TO GROUP\n");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ERROR("VideoConsumer::CreateBuffers - ERROR CREATING VIDEO RING BUFFER: %s\n", strerror(status));
|
ERROR("VideoConsumer::CreateBuffers - ERROR CREATING VIDEO RING "
|
||||||
|
"BUFFER (%ld): %s\n", i, strerror(status));
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -280,8 +280,15 @@ VideoProducer::FormatProposal(const media_source& output, media_format* format)
|
|||||||
|
|
||||||
status_t ret = format_is_compatible(*format, fOutput.format) ?
|
status_t ret = format_is_compatible(*format, fOutput.format) ?
|
||||||
B_OK : B_MEDIA_BAD_FORMAT;
|
B_OK : B_MEDIA_BAD_FORMAT;
|
||||||
if (ret != B_OK)
|
if (ret != B_OK) {
|
||||||
ERROR("FormatProposal() error\n");
|
ERROR("FormatProposal() error: %s\n", strerror(ret));
|
||||||
|
char string[512];
|
||||||
|
string_for_format(*format, string, sizeof(string));
|
||||||
|
ERROR(" requested: %s\n", string);
|
||||||
|
string_for_format(fOutput.format, string, sizeof(string));
|
||||||
|
ERROR(" output: %s\n", string);
|
||||||
|
}
|
||||||
|
|
||||||
// change any wild cards to specific values
|
// change any wild cards to specific values
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user