[vlc-devel] Re: Help with Input thread for VCD plugin

Sigmund Augdal sigmunau at stud.ntnu.no
Tue Sep 16 07:26:47 CEST 2003

The second parameter of intf_Create() is the name of the module to use with
this interface. Module names are in general defined in configure.ac and used
in Modules.am. As far as I can tell your modules is called "vcdx" and not
"vcdplay". Don't know if this is the entire problem, but it could be a start.


On Tue, Sep 16, 2003 at 12:37:47AM -0400, rocky at panix.com wrote:
Content-Description: message body text
> In order to get further with a navigable VCD plugin, user input needs
> to be addressed. 
> As was suggested, I've looked at and modified the code from
> vlc/modules/access/dvdplay and modified it. In particular I have 
> this:
> vlc_module_begin();
>     ...
>     set_callbacks( E_(VCDOpen), E_(VCDClose) );
>     ...
>     add_submodule();
>         set_capability( "demux", 0 );
>         set_callbacks( E_(InitVCD), E_(EndVCD) );
>     add_submodule();
>         set_capability( "interface", 0 );
>         set_callbacks( E_(VCDOpenIntf), E_(VCDCloseIntf) );
> ...
> /*****************************************************************************
>  * InitVCD: initializes dvdplay structures
>  *****************************************************************************/
> int E_(InitVCD) ( vlc_object_t *p_this )
> {
> ...
>     p_vcd->p_intf = intf_Create( p_input, "vcdplay" );
>     p_vcd->p_intf->b_block = VLC_FALSE;
>     intf_RunThread( p_vcd->p_intf );
> However for reasons that are a mystery to me I can't get InitVCD or
> VCDOpenIntf to be called. (I've also tried creating the thread from
> the OpenVCD routine but I get an error saying something to the effect
> that I can't create a new thread from another thread. So I guess I am
> forced to create a new demuxer, right?.)
> In the interest of giving the full gory details here is the entire
> vcdx directory I've been working with. It is installed at the same
> level as vcd, that is in modules/access. 

Content-Description: message body text
> Without being able to handle user interaction, playback navigation
> comes to a halt when one hits a still frame with a menu selection.
> Thanks.

This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>

More information about the vlc-devel mailing list