Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Converting older programs was Re: Re: DVD plugin - anyone got it working?



Hi all,

DVD Plugin works here with newest drivers ;o)

Actually, transfering "old" plugins (as long as they aren't
buggy ;o)) to the newest DVB driver versions isn't that hard.
(usually doing the makefiles is sufficient)

- Take a look at the code and search for ifdef NEWSTRUCT
- remove this line
- somewhere below this there will be an else
- remove everything BELOW the (but including) "else" until you hit an endif
- continue doing the above thru the rest of the code

Example:
*******

ifdef NEWSTRUCT
DVBDIR = ../../../../DVB/include
DEFINES += -DNEWSTRUCT
else
DVBDIR = ../../../../DVB/ost/include
endif

After the "work" this would be the result:

DVBDIR = ../../../../DVB/include
DEFINES += -DNEWSTRUCT

The line "DEFINES += -DNEWSTRUCT" MUST remain there, as
this is used in the actual program code to decide between new &
old driver code. Of course, you CAN look through the rest of the
code and then also remove this define in the same way (works
best on single or small number of files codings), but you will
need to watch out a bit more that you really kill and "unifdef" the
correct lines ;o))

Even in long or complex codes this is an easy task, if you
are comformtable at programming. But even if you are not,
it is still an acomplishable task.



Happy hunting,
Reinhard


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.427 / Virus Database: 240 - Release Date: 06.12.2002






-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index