From c9c1abc3bf56793f2d2e416513e518f412ab9e77 Mon Sep 17 00:00:00 2001 From: beveloper Date: Sun, 7 Dec 2003 17:18:39 +0000 Subject: [PATCH] codec api doesn't call setup twice anymore git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5614 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../media/plugins/xvid_decoder/xvidDecoderPlugin.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/add-ons/media/plugins/xvid_decoder/xvidDecoderPlugin.cpp b/src/add-ons/media/plugins/xvid_decoder/xvidDecoderPlugin.cpp index 6d36a5232d..e9da0d9684 100644 --- a/src/add-ons/media/plugins/xvid_decoder/xvidDecoderPlugin.cpp +++ b/src/add-ons/media/plugins/xvid_decoder/xvidDecoderPlugin.cpp @@ -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");