From patchwork Sun May 15 23:40:52 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: syrius.ml@no-log.org X-Patchwork-Id: 11880 Received: from 165.21.97-84.rev.gaoland.net ([84.97.21.165] helo=f.smtp.localhost) by www.linuxtv.org with esmtp (Exim 4.34) id 1DXSj7-0005ij-4F for vdr@linuxtv.org; Mon, 16 May 2005 01:40:53 +0200 Received: by f.smtp.localhost (Postfix, from userid 1000) id 12C3E32A; Mon, 16 May 2005 01:40:52 +0200 (CEST) To: Klaus Schmidinger's VDR Subject: Re: [vdr] vdr + xine 0.7.4 - now using the budget card. References: <87d5rwi5zq.87br7gi5zq@87acn0i5zq.message.id> <4284FDAE.8090107@gmx.de> From: syrius.ml@no-log.org Message-ID: <87r7g8dtp9.87psvsdtp9@87oebcdtp9.message.id> Date: Mon, 16 May 2005 01:40:52 +0200 In-Reply-To: <4284FDAE.8090107@gmx.de> (Reinhard Nissl's message of "Fri, 13 May 2005 21:19:10 +0200") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) MIME-Version: 1.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: Sun, 15 May 2005 23:40:53 -0000 Status: O X-Status: X-Keywords: X-UID: 2235 Reinhard Nissl writes: [...] >> And I've discovered vdr is now using my budget card (card #2) for >> live tv while it was using the ff one (card #1) before. >> PrimaryDVB = 3 >> xine.autoPrimaryDeviceMode = autoPrimaryDeviceOff >> I don't use the FF output at all, but I'd prefer to have the FF card >> used for live TV. Is there something I missed ? is there a setting >> for that ? (iirc, a change concerning the fact vdr prefers budget >> cards to record has been made in vdr but i'm not sure it's really >> related) > > I think, finding a device as source for transfer mode respectively > recording is handled identically. So the change in 1.3.24 hits you ;-) in fact you're right. I've modified the check so that it set pri to 2 if Priority is also greater than 0. I assume most plugins call cDevice::GetDevice with Priority=0 and records default to 50. Records with Priority==0 won't be recorded by budget cards by default. I'm pretty sure a cleaner solution exists. --- /tmp/device.c 2005-05-16 01:25:48.000000000 +0200 +++ device.c 2005-05-16 01:38:36.000000000 +0200 @@ -283,4 +283,4 @@ pri = 1; // free and fewer Ca's - else if (!device[i]->Receiving() && !device[i]->HasDecoder()) - pri = 2; // free and not a full featured card + else if (!device[i]->Receiving() && !device[i]->HasDecoder() && Priority > 0) + pri = 2; // free and not a full featured card and Priority > 0 else if (!device[i]->Receiving() && !device[i]->IsPrimaryDevice())