Re: Bug in VLS-0.5.0

Claude Duvallet <[email protected]>
Newsgroups gmane.comp.video.videolan.vls.devel
Organization LIT/ENSTB
Message-ID <[email protected]>
Claude Duvallet wrote:
> Hello,
> 
> I would like to know why I can't get the version 0.5.0 by CVS. When I
> use cvs, I retrieve the version 0.4.5. It's strange ...
> 
> So I get the tarball and I install it. I notice than when I add a
> program by the telnet administration with a name containing capitals, it
> is registred in minuscules.
> 
> I have found where is the problem :
> * I change a line in the file application.h
> * I replace "{ m_cSettings.Update(strKey.ToLower(), strValue.ToLower());
> }" by "{ m_cSettings.Update(strKey.ToLower(), strValue); }
> "

Finally I have changed all the block : lines 418-436 by this one :

   if(uiPgrmCount>=0)
   {
       uiPgrmCount++;
       C_String strKey = GetName() + "." +C_String(uiPgrmCount)+ ".Name";
       pApp->SetSettings(strKey,strProgram);
       strKey = GetName() + "." +C_String(uiPgrmCount)+ ".FileName";
       pApp->SetSettings(strKey, strFileName);
       strKey = GetName() + "." +C_String(uiPgrmCount)+ ".Type";
       pApp->SetSettings(strKey, strType);
       strKey = C_String("Input.ProgramCount");
       C_String strPgrmCount=C_String(uiPgrmCount);
       pApp->SetSettings(strKey, strPgrmCount);

       // add to m_vProgramNames
       C_String strName = pApp->GetSetting(GetName() + "." 
+C_String(uiPgrmCount) + ".Name",C_String("Pgrm") + uiPgrmCount);
       C_String* pStr = new C_String(strName);
       m_vProgramNames.Add(pStr);
   }

I also change the line 174 which became :
   C_String strType = pApp->GetSetting(C_String(strId) + ".Type", 
"Mpeg2-TS").ToLower();

Replacement of uiId by strId !

> I have find another problem. When I add a program with the telnet 
> administration, I can't start streaming of it. It say that the file '' 
> does not exist. After having look at the code, I find that the "key" use 
> to registred the program is not the same than the key use to start 
> streaming of it.
> I change the line 423 of the file localinput.cpp and it works. The new 
> line is : strKey = GetName() + "." +C_String(uiPgrmCount)+ ".FileName";
> 
> and the line 171-172 become : C_String strType = 
> pApp->GetSetting(C_String(uiId) + ".Type", "Mpeg2-TS").ToLower();
> 
> Now It works but I don't know if It can have consequences on other parts
> of the code.
> 
> I have a last problem : if I add no program with the config file 
> "vls.cfg" and so I set ProgramCount=0, I can't add program with telnet 
> administration, it says the "ProgramList is empty." ???
> 

It was resolved by the "uiPgrmCount>=0" (line 418)

Je m'évertue à envoyer des mail sur cette mailing liste alors que 
personne ne réponds ...
À croire que personne n'a jamais réellement utilisé l'interface telnet 
pour ajouter des "program" (films) et lancer le streaming de ceux-ci ...

Dernier problème v4l ne marche plus depuis que j'ai récupéré la version 
tarball de vls-0.5.0 ??? Et donc plus de possibilité de connecter une 
webcam !

Personne n'a répondu à ma question sur la récupération par cvs. Est-ce 
que je récupère pas la bonne branche est-ce un autre problème ....



-- 
================================================
Claude Duvallet
LIT, ENST Bretagne
Technopole Brest Iroise
BP 832
29285 Brest Cedex
Tel : (0|33) 229 001 502
Fax : (0|33) 229 001 282
Courriel : [email protected]
http://perso-info.enst-bretagne.fr/~cduvalle
================================================





-- 
This is the vls-devel mailing-list, see http://www.videolan.org/streaming/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.