Would this code work?

FrankRizzo
Neugieriger
Neugieriger
Beiträge: 5
Registriert: Mittwoch 25. Februar 2004, 06:46

Would this code work?

Beitrag von FrankRizzo »

I JUST got my dreambox in, and the new code lets you choose NTSC as an option, and it displays it pretty well, but the "title screen" as it were, is still shown in PAL. So, I studied the code a little, and I THINK this will fix it. Can anyone test it for me, as I have yet to succeed at making a good flash image. It DOES compile, and link without warnings. It's from enigma.cpp, and you need to include eavswitch.h. In order to get this done, you have to just ADD this line to your Makefile.am, in the includes section at the top:

-I$(top_srcdir)/include/lib/driver/

And add a define near the top somewhere:

#define SAA_NTSC 0

Then, it'll let you include the file, and everything compiles just fine. Anyone willing to test it?

int main(int argc, char **argv)
{
time_t t=0;
int res;
unsigned int tvsystem = 0;

stime(&t);
eDebug("%s", copyright);

setlocale (LC_ALL, "");
bindtextdomain ("tuxbox-enigma", "/share/locale");
bind_textdomain_codeset("tuxbox-enigma", "UTF8");
textdomain ("tuxbox-enigma");

eConfig::getInstance()->getKey("/elitedvb/video/tvsystem", tvsystem );

// If we really WANT NTSC
if(tvsystem == SAA_NTSC)
{
// Then set it to NTSC before we show anything on the screen.
eAVSwitch::getInstance()->setVSystem(vsNTSC);
}

Decoder::Initialize();
Decoder::displayIFrameFromFile("/iframe");

eConfigOld c;
c.convert("/var/tuxbox/config/enigma/config");
eZap ezap(argc, argv);
res=ezap.exec();

Decoder::Flush();

exit(res);
}


Just cut & paste the function, and recompile!
FrankRizzo
Neugieriger
Neugieriger
Beiträge: 5
Registriert: Mittwoch 25. Februar 2004, 06:46

You guys aren't the most HELPFUL group in the world..

Beitrag von FrankRizzo »

DieMade
Oberlamer, Administrator & Supernanny
Beiträge: 10532
Registriert: Samstag 13. Juli 2002, 10:49

just check the topic of the forum

Beitrag von DieMade »

dbox2 / linux
There are 10 types of people in the world: those who know binary and those who don't