[vlc-devel] Writing new KLV module

Yair Han YairH at optibase.com
Sat May 8 19:22:45 CEST 2010


Hi JB and all,

 

It's early but yes I can share my code. You want just the new module or
the changes to the TS Demux as well?

 

Anyway, I'll have my module code ready and send it to all.

 

Regards,

Yair

 

-----Original Message-----
From: vlc-devel-bounces at videolan.org
[mailto:vlc-devel-bounces at videolan.org] On Behalf Of Jean-Baptiste Kempf
Sent: Saturday, May 08, 2010 8:13 PM
To: Mailing list for VLC media player developers
Subject: Re: [vlc-devel] Writing new KLV module

 

Hello Yair,

 

On Sat, May 08, 2010 at 07:59:08PM +0300, Yair Han wrote :

> I wrote a new KLV parser module for VLC. I used the wiki page for

 

Could you share the code to us or is it too early stage?

 

 

Best Regards,

 

-- 

Jean-Baptiste Kempf

http://www.jbkempf.com/

_______________________________________________

vlc-devel mailing list

To unsubscribe or modify your subscription options:

http://mailman.videolan.org/listinfo/vlc-devel

 

 

________________________________

From: Yair Han 
Sent: Saturday, May 08, 2010 7:59 PM
To: 'Mailing list for VLC media player developers'
Subject: Writing new KLV module

 

Hi Guys,

 

I wrote a new KLV parser module for VLC. I used the wiki page for
writing new module. I need to understand the memory flow (allocation and
de-allocation) so it won't crash.

 

The TS Demux recognizes the metadata PID and collects the data to a
p_block. The p_block is passed okay to the klv module and gets
translated properly. 

Do I need to free the block in the decoder (my new module) or leave it
to the demux to free?

Can I use the block from the demux or should I use duplicate block
before using on the module? 

What do I need to exclude the use of p_sys inside my module or the Open
+ Close methods from the Decode method or both?

 

The output could be one of two. Sub picture on screen (still need to
implement) and text output to the calling application through the
ActiveX plugin

How do I use a var_string for output string properly?

How and where I need to exclude access to interface string?

Do I need to call var_SetString inside my module or just memcopy to the
interface var?

 

The current status is that it works functionally and the klv string gets
to the calling application but it crashes after a few seconds or
minutes. I guess it's some memory corruption but I can't find it.

 

Thanks for the Help guys,

Yair Han

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100508/0375fc09/attachment.html>


More information about the vlc-devel mailing list