mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Searching for free DVB card from low to high index
This commit is contained in:
parent
378db17bee
commit
36aae95b65
5
HISTORY
5
HISTORY
@ -438,3 +438,8 @@ Video Disk Recorder Revision History
|
||||
- The new command line option -t can be used to set the controlling terminal
|
||||
(thanks to Jürgen Sauer). This is especially useful when starting VDR through
|
||||
an entry in /etc/inittab (see INSTALL).
|
||||
- Since the CAM module only works if it is installed in the "highest" DVB card,
|
||||
recordings now search for a free DVB card from lowest to highest index (as
|
||||
opposed to the previous "highest to lowest" search) in order to not use the
|
||||
CAM card for FTA recordings unless necessary. This is only important for
|
||||
systems with three or more DVB cards.
|
||||
|
4
dvbapi.c
4
dvbapi.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: dvbapi.c 1.64 2001/03/18 16:47:16 kls Exp $
|
||||
* $Id: dvbapi.c 1.65 2001/03/31 10:46:17 kls Exp $
|
||||
*/
|
||||
|
||||
#include "dvbapi.h"
|
||||
@ -1517,7 +1517,7 @@ cDvbApi *cDvbApi::GetDvbApi(int Ca, int Priority)
|
||||
{
|
||||
cDvbApi *d = NULL, *dMinPriority = NULL;
|
||||
int index = Ca - 1;
|
||||
for (int i = MAXDVBAPI; --i >= 0; ) {
|
||||
for (int i = 0; i < MAXDVBAPI; i++) {
|
||||
if (dvbApi[i]) {
|
||||
if (i == index) { // means we need exactly _this_ device
|
||||
d = dvbApi[i];
|
||||
|
Loading…
Reference in New Issue
Block a user