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:
beveloper 2003-12-07 17:18:39 +00:00
parent 2648dc48d8
commit c9c1abc3bf

View File

@ -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");