For the time being, don't enable a shared BBufferGroup

in overlay mode. Added TODO, since it should be fixed
eventually. There seems to be a problem with mapping
the BBitmap area into a BBuffer (video stays black).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38834 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2010-09-28 11:04:07 +00:00
parent 01e0d3278a
commit a574c5ce13
@@ -321,10 +321,15 @@ VideoConsumer::Connected(const media_source& producer,
int32 changeTag = 1; int32 changeTag = 1;
status_t ret = CreateBuffers(format); status_t ret = CreateBuffers(format);
if (ret == B_OK) { if (ret == B_OK) {
ret = SetOutputBuffersFor(producer, fIn.destination, // TODO: With overlay bitmaps, there seems to be a problem with
fBuffers, &userData, &changeTag, true); // mapping the BBitmap areas into the BBuffers. Until that is fixed,
if (ret != B_OK) // don't enable a shared BBufferGroup.
printf("SetOutputBuffersFor() failed: %s\n", strerror(ret)); if (!fTryOverlay) {
ret = SetOutputBuffersFor(producer, fIn.destination,
fBuffers, &userData, &changeTag, true);
if (ret != B_OK)
ERROR("SetOutputBuffersFor() failed: %s\n", strerror(ret));
}
fIn.format.u.raw_video.display.bytes_per_row fIn.format.u.raw_video.display.bytes_per_row
= fBitmap[0]->BytesPerRow(); = fBitmap[0]->BytesPerRow();
} else { } else {