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:
@@ -67,13 +67,6 @@ xvidDecoder::Setup(media_format *ioEncodedFormat,
|
|||||||
const void *infoBuffer, int32 infoSize)
|
const void *infoBuffer, int32 infoSize)
|
||||||
{
|
{
|
||||||
int xerr;
|
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) {
|
if (ioEncodedFormat->type != B_MEDIA_ENCODED_VIDEO) {
|
||||||
TRACE("xvidDecoder::Setup not called with encoded video");
|
TRACE("xvidDecoder::Setup not called with encoded video");
|
||||||
|
|||||||
Reference in New Issue
Block a user