codec api doesn't call setup twice anymore
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5614 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
2648dc48d8
commit
c9c1abc3bf
@ -67,13 +67,6 @@ xvidDecoder::Setup(media_format *ioEncodedFormat,
|
||||
const void *infoBuffer, int32 infoSize)
|
||||
{
|
||||
int xerr;
|
||||
static BLocker locker;
|
||||
static bool initdone = false;
|
||||
BAutolock lock(locker);
|
||||
if (initdone) {
|
||||
TRACE("xvidDecoder::Setup called twice\n");
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
if (ioEncodedFormat->type != B_MEDIA_ENCODED_VIDEO) {
|
||||
TRACE("xvidDecoder::Setup not called with encoded video");
|
||||
|
Loading…
x
Reference in New Issue
Block a user