From patchwork Wed Nov 2 17:58:40 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Olivetti X-Patchwork-Id: 12080 Received: from 232.red-213-97-27.staticip.rima-tde.net ([213.97.27.232]) by www.linuxtv.org with esmtp (Exim 4.50) id 1EXMtD-0004Ga-Tt for vdr@linuxtv.org; Wed, 02 Nov 2005 18:59:12 +0100 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by 232.Red-213-97-27.staticIP.rima-tde.net (Postfix) with ESMTP id E66EA180CF81 for ; Wed, 2 Nov 2005 18:58:40 +0100 (CET) Message-ID: <4368FE50.5000601@ventoso.org> Date: Wed, 02 Nov 2005 18:58:40 +0100 From: Luca Olivetti User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923) X-Accept-Language: ca MIME-Version: 1.0 To: Klaus Schmidinger's VDR Subject: Re: [vdr] Problem with transfer mode, xine plugin and ActualDevice References: <43679260.9060403@ventoso.org> <4367A306.5050308@gmx.de> <4367ABAC.1060501@ventoso.org> <4367C045.9020303@gmx.de> <4367C6AA.8020003@ventoso.org> <4367D97E.707@ventoso.org> <4367E1F2.7090509@gmx.de> <4367EFA6.9080208@ventoso.org> <4367F07C.9070404@ventoso.org> <43680202.90708@gmx.de> <436805B3.20109@ventoso.org> <4368D8F3.7080707@gmx.de> In-Reply-To: <4368D8F3.7080707@gmx.de> X-Enigmail-Version: 0.92.0.0 X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Nov 2005 17:59:12 -0000 Status: O X-Status: X-Keywords: X-UID: 5825 En/na Reinhard Nissl ha escrit: > Please provide me a showcase with femon. I could hack vdr-xine for > multiple devices and try to reproduce this problem here too. Btw, this is the patch I'm using now (against original 0.7.6), and it seems to work, but I'm not sure it's due to simple luck or it is working by design (e.g. if I switch the order of cControl::Shutdown() and Skins.Message in the OnClientConnect handler it won't work). Bye --- xineDevice.c.orig 2005-11-01 23:22:33.373053917 +0100 +++ xineDevice.c 2005-11-02 01:10:01.790392026 +0100 @@ -2630,8 +2630,13 @@ { cDevice *primaryDevice = cDevice::PrimaryDevice(); if (this != primaryDevice) + { + Skins.Message(mtInfo, tr("Switching primary DVB to vdr-xine...")); + cControl::Shutdown(); SetPrimaryDevice(1 + DeviceNumber()); - originalPrimaryDevice = primaryDevice; + originalPrimaryDevice = primaryDevice; + } + } if (m_settings.ShallSwitchSkin()) @@ -2647,7 +2652,11 @@ && originalPrimaryDevice) { if (this != originalPrimaryDevice) + { + cControl::Shutdown(); SetPrimaryDevice(1 + originalPrimaryDevice->DeviceNumber()); + Skins.Message(mtInfo, tr("Switched primary DVB back from vdr-xine")); + } } }