[theora] testing if an ogg_stream_state was initiated.
    Ralph Giles 
    giles at xiph.org
       
    Tue Oct  2 14:05:51 PDT 2007
    
    
  
On Tue, Oct 02, 2007 at 08:06:52PM +0000, Ribamar Santarosa de Sousa wrote:
> Does anybody know how to test if an ogg_stream_state was initiated by
> ogg_stream_init() ? Or is something like keeping another
> structure/variable and set it when I call ogg_stream_init()  probably
> the only way to get that information?
No general way, no. If you're using a custom allocator, you might for 
example be able to ask it if the pointers point to allocated blocks,
etc. But like most objects in C, you have to keep track of its lifetime
yourself.
 -r
    
    
More information about the theora
mailing list