Is the lib not initialized properly? I've seen this if you try to create 
osg-objects before calling osgInit(), or if the class fails to register 
itself (could happen with linker optimizations when using static libraries).

(it's probably not that simple, but you never know..)

Cheers,
/Marcus

Antonio Bleile wrote:
> Hi,
>
> Sorry for replying to myself... ;-)
>
>   
>> After two days of messing around with ffmpeg (I can tell you 
>> it's a real pain under windows), I finally got the VideoGrab 
>> contrib part compiled.... But it doesn't really work 
>> properly. It's quite strange to me, but I think I made some 
>> stupid mistake, the call to AVCodecGrabForeground::create(); 
>> returns a  Null pointer. What could that mean?
>>     
>
> The debugger suggests that in the create method the
> getPrototype() call resturns NullFC. Why? 
>
> Cheers,
>
>   Toni
>
> P.S.: I'm using the current cvs version....
>
> //! create a new instance of the class
> inline
> AVCodecGrabForegroundPtr AVCodecGrabForegroundBase::create(void) 
> {
>     AVCodecGrabForegroundPtr fc; 
>
>     if(getClassType().getPrototype() != OSG::NullFC) 
>     {
>         fc = AVCodecGrabForegroundPtr::dcast(
>             getClassType().getPrototype()-> shallowCopy()); 
>     }
>     
>     return fc; 
> }
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>   


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to