This fixes the option to queue files instead of playing them immediately on starting freeamp. It now does what it says it should do instead of playing immediately all the time.
Patched against cvs. diff -urN -x corba -x CVS -x config.status -x configure -x config.h -x config.log -x Makefile* -x aclocal* -x config.cache ../freeamp/base/unix/src/bootstrap.cpp ./freeamp/base/unix/src/bootstrap.cpp --- ../freeamp/base/unix/src/bootstrap.cpp Fri Dec 29 15:00:47 2000 +++ ./freeamp/base/unix/src/bootstrap.cpp Sun Apr 14 12:44:38 2002 @@ -98,7 +98,7 @@ int iCmdSem = -1, iCmdMem = -1; int iProcess, i; char *pCmdLine = NULL, *pPtr; - + bool bPlay = 0; union semun unsem; unsem.val = 0; #endif @@ -239,12 +239,13 @@ pP->RegisterPMIs(pmi); pP->RegisterPMOs(pmo); pP->RegisterUIs(ui); - + context->prefs->GetPrefBoolean(kPlayImmediatelyPref, &bPlay); if (pP->SetArgs(argc,argv)) { pP->SetTerminationSemaphore(termSemaphore); pP->Run(); - + if(!bPlay) + context->target->AcceptEvent(new Event(CMD_Stop)); for(;;) { if (!termSemaphore->TimedWait(1000)) @@ -253,9 +254,6 @@ if (pCmdLine && strlen(pCmdLine) > 0 && !allow_mult) { int iItems = context->plm->CountItems(); - bool bPlay; - - context->prefs->GetPrefBoolean(kPlayImmediatelyPref, &bPlay); for(i = 0, pPtr = pCmdLine; *pPtr; i++) { if (i == 0) _______________________________________________ [EMAIL PROTECTED] http://www.freeamp.org/mailman/listinfo/freeamp-dev