>>>>> "Zdenek" == Zdenek Kabelac <[EMAIL PROTECTED]> writes:
Zdenek>
>> *** codeckeeper.cpp.orig Mon Feb 3 11:53:40 2003 ---
>> codeckeeper.cpp Mon Feb 3 11:54:01 2003
>> ***************
>> *** 892,898 **** { CodecInfo& ci = c[i];
>>
>> ! if (ci.privatename == pname) return &ci; }
>>
>> --- 892,898 ---- { CodecInfo& ci = c[i];
>>
>> ! if (ci.GetName() == avm::string(pname)) return &ci; }
Zdenek> Hmm about this - one - are you sure this patch is the right
Zdenek> one ?
Zdenek>
Zdenek> That would have rather meant there is bug in some string class
Zdenek> method. Adn string class declaration should be fixed instead.
Zdenek>
No. the point is, that you call CodecInfo::match(CodecInfo::Media
cimedia, const char* pname) from AviWriteFile::AddVideoStream such,
that "pname" isnt the "privatename", but the "name" of the
CodecInfo. So, every comparison fails and no codec can be found.
The thing with the "string()" is, that BaseInfo::GetName() returns a
"const char *" and "pname" is also a "const char *", so the operator
"==" will compare pointers instead of strings, if you just write
"ci.GetName() == pname".
greetings, Torsten Blank
--
Awaron AG, Steinh�userstrasse 12, D-76135 Karlsruhe
Tel: 0721/15 109-0 Fax: 0721/15 109-99
_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile