Page 1 of 1

vlc, how to return ntf_thread_t Pointer??

Posted: 22 Dec 2009 04:09
by wj780127
vlc, how to return ntf_thread_t Pointer??I would like to call Quick Play Interface.code:
void libvlc_play_skipback( libvlc_media_player_t *p_mi, libvlc_exception_t *p_e )
vout_thread_t *p_vout = GetVout( p_mi, p_e );
if( !p_vout ) return;

intf_thread_t *p_intf = NULL;
p_intf = ( intf_thread_t * ) vlc_object_find_name( p_vout, "postproc", FIND_CHILD );

if(p_intf)
{
var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_JUMP_BACKWARD_SHORT );
}
vlc_object_release(p_vout);

Re: vlc, how to return ntf_thread_t Pointer??

Posted: 22 Dec 2009 04:13
by wj780127
if(p_intf)
{
var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_JUMP_BACKWARD_SHORT );
}

this p_intf is null,No return value;

Re: vlc, how to return ntf_thread_t Pointer??

Posted: 22 Dec 2009 09:33
by Jean-Baptiste Kempf
What are you doing? Modifying VLC?

Re: vlc, how to return ntf_thread_t Pointer??

Posted: 22 Dec 2009 12:26
by wj780127
yes, I have solved that problem. thank your

Re: vlc, how to return ntf_thread_t Pointer??

Posted: 22 Dec 2009 12:27
by wj780127
i is Few more interfaces