[vlc-devel] Re: lirc vlc plugin

Sigmund Augdal sigmunau at stud.ntnu.no
Thu Jun 19 15:41:23 CEST 2003


Something like this should do the trick, inserted at the right place.
Please send your code back to me if you make it work.

I don't know how to get back to menu.

Sigmund

//next chapter
        vlc_mutex_lock( &p_input->stream.stream_lock );
        i_chapter = p_input->stream.p_selected_area->i_part + 1;
        vlc_mutex_unlock( &p_input->stream.stream_lock );
        vlc_mutex_lock( &p_input->stream.stream_lock );
        if( ( i_chapter > 0 ) && ( i_chapter <
            p_input->stream.p_selected_area->i_part_nb ) )
        {
            input_area_t *p_area = p_input->stream.p_selected_area;
            p_input->stream.p_selected_area->i_part = i_chapter;
            vlc_mutex_unlock( &p_input->stream.stream_lock );
            input_ChangeArea( p_input, p_area );
            input_SetStatus( p_input, INPUT_STATUS_PLAY );
            vlc_mutex_lock( &p_input->stream.stream_lock );
        }
        vlc_mutex_unlock( &p_input->stream.stream_lock );

//previous chapter
        vlc_mutex_lock( &p_input->stream.stream_lock );
        i_chapter = p_input->stream.p_selected_area->i_part - 1;
        vlc_mutex_unlock( &p_input->stream.stream_lock );
        vlc_mutex_lock( &p_input->stream.stream_lock );
        if( ( i_chapter > 0 ) && ( i_chapter <
            p_input->stream.p_selected_area->i_part_nb ) )
        {
            input_area_t *p_area = p_input->stream.p_selected_area;
            p_input->stream.p_selected_area->i_part = i_chapter;
            vlc_mutex_unlock( &p_input->stream.stream_lock );
            input_ChangeArea( p_input, p_area );
            input_SetStatus( p_input, INPUT_STATUS_PLAY );
            vlc_mutex_lock( &p_input->stream.stream_lock );
        }
        vlc_mutex_unlock( &p_input->stream.stream_lock );

On Thu, Jun 19, 2003 at 02:49:52PM +0200, Stephane Mottelet wrote:
> 
> Hi.
> 
> How could I modify your lirc.c (vlc 0.5.3) to support
> next_chapter and previous_chapter ? Is there a possibility
> to go to the dvd menu ?
> 
> Thanks for help
> 
> S.
-- 
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