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:
@@ -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) {
|
||||||
|
// TODO: With overlay bitmaps, there seems to be a problem with
|
||||||
|
// mapping the BBitmap areas into the BBuffers. Until that is fixed,
|
||||||
|
// don't enable a shared BBufferGroup.
|
||||||
|
if (!fTryOverlay) {
|
||||||
ret = SetOutputBuffersFor(producer, fIn.destination,
|
ret = SetOutputBuffersFor(producer, fIn.destination,
|
||||||
fBuffers, &userData, &changeTag, true);
|
fBuffers, &userData, &changeTag, true);
|
||||||
if (ret != B_OK)
|
if (ret != B_OK)
|
||||||
printf("SetOutputBuffersFor() failed: %s\n", strerror(ret));
|
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user