[MPlayer-dvb] Re: [PATCH] Allow simultaneous playing of multipleDVB cards

Nico Sabbi nsabbi at email.it
Mon Nov 27 16:08:38 CET 2006


Carl Eugen Hoyos wrote:

>Index: stream/stream_dvb.c
>===================================================================
>--- stream/stream_dvb.c (Revision 21185)
>+++ stream/stream_dvb.c (Arbeitskopie)
>@@ -666,7 +666,7 @@
>        struct stream_priv_s* p = (struct stream_priv_s*)opts;
>        dvb_priv_t *priv;
>        char *progname;
>-       int tuner_type = 0;
>+       int tuner_type = 0, i;
>
>
>        if(mode != STREAM_READ)
>@@ -688,6 +688,13 @@
>        dvb_config->priv = priv;
>        priv->config = dvb_config;
>
>+       for(i=0; i<priv->config->count; i++)
>+               if(priv->config->cards[i].devno+1 == p->card)
>+               {
>+                       p->card = i+1;
>+                       break;
>+               }
>+
>        if(p->card < 1 || p->card > priv->config->count)
>        {
>                free(priv);
>  
>

buggy. fixed slightly differently in svn



More information about the MPlayer-dvb mailing list