From patchwork Wed Jun 29 01:08:34 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anssi Hannula X-Patchwork-Id: 11926 Received: from fep19.inet.fi ([194.251.242.244]) by www.linuxtv.org with esmtp (Exim 4.34) id 1DnR4D-0001lh-Is for vdr@linuxtv.org; Wed, 29 Jun 2005 03:08:41 +0200 Received: from posti.hopto.org ([80.223.77.223]) by fep19.inet.fi with ESMTP id <20050629010837.EWKA1914.fep19.inet.fi@posti.hopto.org> for ; Wed, 29 Jun 2005 04:08:37 +0300 Received: from [10.0.0.3] (kone [10.0.0.3]) by posti.hopto.org (Postfix) with ESMTP id EA94437F800D for ; Wed, 29 Jun 2005 04:08:36 +0300 (EEST) Message-ID: <42C1F492.3050303@gmail.com> Date: Wed, 29 Jun 2005 04:08:34 +0300 From: Anssi Hannula User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050322) X-Accept-Language: en-us, en MIME-Version: 1.0 To: vdr@linuxtv.org Subject: [vdr] [PATCH] Priority of transfer-mode should not be -1 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, 29 Jun 2005 01:08:41 -0000 Status: O X-Status: X-Keywords: X-UID: 3295 Hi! The transfer-mode uses always priority -1. That presents a problem: If I connect to that vdr using streamdev, it switches the first budget device off from the multiplex transfered to the FF card, although there is a second identical budget device available. Also, if I had DVB-S FF and only one DVB-T budget and had a DVB-T recording with priority 10 and Primary Limit at 20, live DVB-T video would (wouldn't it?) be severed. Klaus, shouldn't transfer-mode be also using the Primary Limit value, so that recordings with priority less than Primary Limit couldn't distract the output of primary device? Patch attached. --- transfer.c.old 2005-06-29 03:50:18.000000000 +0300 +++ transfer.c 2005-06-29 03:59:26.000000000 +0300 @@ -15,7 +15,7 @@ // --- cTransfer ------------------------------------------------------------- cTransfer::cTransfer(int VPid, const int *APids, const int *DPids, const int *SPids) -:cReceiver(0, -1, VPid, APids, Setup.UseDolbyDigital ? DPids : NULL, SPids) +:cReceiver(0, Setup.PrimaryLimit, VPid, APids, Setup.UseDolbyDigital ? DPids : NULL, SPids) ,cThread("transfer") { ringBuffer = new cRingBufferLinear(TRANSFERBUFSIZE, TS_SIZE * 2, true, "Transfer");