Commit 19091cce authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

libvlc_run_interface -> libvlc_add_intf (non-blocking)

parent da316c39
......@@ -154,8 +154,8 @@ VLC_PUBLIC_API void libvlc_retain( libvlc_instance_t * );
* \param p_exception an initialized exception pointer
*/
VLC_PUBLIC_API
void libvlc_run_interface( libvlc_instance_t *p_instance, const char *name,
libvlc_exception_t *p_exception );
void libvlc_add_intf( libvlc_instance_t *p_instance, const char *name,
libvlc_exception_t *p_exception );
/**
* Waits until an interface causes the instance to exit.
......
......@@ -166,10 +166,10 @@ void libvlc_release( libvlc_instance_t *p_instance )
}
}
void libvlc_run_interface( libvlc_instance_t *p_i, const char *name,
libvlc_exception_t *p_e )
void libvlc_add_intf( libvlc_instance_t *p_i, const char *name,
libvlc_exception_t *p_e )
{
if( libvlc_InternalAddIntf( p_i->p_libvlc_int, name, true, true, 0, NULL ) )
if( libvlc_InternalAddIntf( p_i->p_libvlc_int, name, false, true, 0, NULL ) )
RAISEVOID( "Interface initialization failed" );
}
......
libvlc_add_intf
libvlc_audio_get_channel
libvlc_audio_get_mute
libvlc_audio_get_track
......@@ -157,7 +158,6 @@ libvlc_playlist_stop
libvlc_playlist_unlock
libvlc_release
libvlc_retain
libvlc_run_interface
libvlc_set_fullscreen
libvlc_set_log_verbosity
libvlc_toggle_fullscreen
......
......@@ -134,7 +134,8 @@ int main( int i_argc, const char *ppsz_argv[] )
if (vlc != NULL)
{
libvlc_run_interface (vlc, NULL, &ex);
libvlc_add_intf (vlc, NULL, &ex);
libvlc_wait (vlc);
libvlc_release (vlc);
}
i_ret = libvlc_exception_raised (&ex);
......
......@@ -197,7 +197,8 @@ int WINAPI wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
libvlc_instance_t *vlc = libvlc_new (argc, (const char **)argv, &ex);
if (vlc != NULL)
{
libvlc_run_interface (vlc, NULL, &ex);
libvlc_add_intf (vlc, NULL, &ex);
libvlc_wait (vlc);
libvlc_release (vlc);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment