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,7 +154,7 @@ VLC_PUBLIC_API void libvlc_retain( libvlc_instance_t * ); ...@@ -154,7 +154,7 @@ VLC_PUBLIC_API void libvlc_retain( libvlc_instance_t * );
* \param p_exception an initialized exception pointer * \param p_exception an initialized exception pointer
*/ */
VLC_PUBLIC_API VLC_PUBLIC_API
void libvlc_run_interface( libvlc_instance_t *p_instance, const char *name, void libvlc_add_intf( libvlc_instance_t *p_instance, const char *name,
libvlc_exception_t *p_exception ); libvlc_exception_t *p_exception );
/** /**
......
...@@ -166,10 +166,10 @@ void libvlc_release( libvlc_instance_t *p_instance ) ...@@ -166,10 +166,10 @@ void libvlc_release( libvlc_instance_t *p_instance )
} }
} }
void libvlc_run_interface( libvlc_instance_t *p_i, const char *name, void libvlc_add_intf( libvlc_instance_t *p_i, const char *name,
libvlc_exception_t *p_e ) 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" ); RAISEVOID( "Interface initialization failed" );
} }
......
libvlc_add_intf
libvlc_audio_get_channel libvlc_audio_get_channel
libvlc_audio_get_mute libvlc_audio_get_mute
libvlc_audio_get_track libvlc_audio_get_track
...@@ -157,7 +158,6 @@ libvlc_playlist_stop ...@@ -157,7 +158,6 @@ libvlc_playlist_stop
libvlc_playlist_unlock libvlc_playlist_unlock
libvlc_release libvlc_release
libvlc_retain libvlc_retain
libvlc_run_interface
libvlc_set_fullscreen libvlc_set_fullscreen
libvlc_set_log_verbosity libvlc_set_log_verbosity
libvlc_toggle_fullscreen libvlc_toggle_fullscreen
......
...@@ -134,7 +134,8 @@ int main( int i_argc, const char *ppsz_argv[] ) ...@@ -134,7 +134,8 @@ int main( int i_argc, const char *ppsz_argv[] )
if (vlc != NULL) if (vlc != NULL)
{ {
libvlc_run_interface (vlc, NULL, &ex); libvlc_add_intf (vlc, NULL, &ex);
libvlc_wait (vlc);
libvlc_release (vlc); libvlc_release (vlc);
} }
i_ret = libvlc_exception_raised (&ex); i_ret = libvlc_exception_raised (&ex);
......
...@@ -197,7 +197,8 @@ int WINAPI wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, ...@@ -197,7 +197,8 @@ int WINAPI wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
libvlc_instance_t *vlc = libvlc_new (argc, (const char **)argv, &ex); libvlc_instance_t *vlc = libvlc_new (argc, (const char **)argv, &ex);
if (vlc != NULL) if (vlc != NULL)
{ {
libvlc_run_interface (vlc, NULL, &ex); libvlc_add_intf (vlc, NULL, &ex);
libvlc_wait (vlc);
libvlc_release (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