Commit 8d875234 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

good

parent 8f9c3647
...@@ -60,11 +60,10 @@ typedef enum libvlc_playback_mode_t ...@@ -60,11 +60,10 @@ typedef enum libvlc_playback_mode_t
* *
* \param p_instance libvlc instance * \param p_instance libvlc instance
* \param p_e initialized exception instance * \param p_e initialized exception instance
* \return media list player instance * \return media list player instance or NULL on error
*/ */
VLC_PUBLIC_API libvlc_media_list_player_t * VLC_PUBLIC_API libvlc_media_list_player_t *
libvlc_media_list_player_new( libvlc_instance_t * p_instance, libvlc_media_list_player_new( libvlc_instance_t * p_instance );
libvlc_exception_t * p_e );
/** /**
* Release media_list_player. * Release media_list_player.
......
This diff is collapsed.
...@@ -438,7 +438,7 @@ set_current_playing_item(libvlc_media_list_player_t * p_mlp, libvlc_media_list_p ...@@ -438,7 +438,7 @@ set_current_playing_item(libvlc_media_list_player_t * p_mlp, libvlc_media_list_p
/* Create a new media_player if there is none */ /* Create a new media_player if there is none */
if (!p_mlp->p_mi) if (!p_mlp->p_mi)
p_mlp->p_mi = libvlc_media_player_new_from_media(p_md, NULL); p_mlp->p_mi = libvlc_media_player_new_from_media(p_md);
libvlc_media_player_set_media(p_mlp->p_mi, p_md); libvlc_media_player_set_media(p_mlp->p_mi, p_md);
...@@ -454,9 +454,8 @@ set_current_playing_item(libvlc_media_list_player_t * p_mlp, libvlc_media_list_p ...@@ -454,9 +454,8 @@ set_current_playing_item(libvlc_media_list_player_t * p_mlp, libvlc_media_list_p
* new (Public) * new (Public)
**************************************************************************/ **************************************************************************/
libvlc_media_list_player_t * libvlc_media_list_player_t *
libvlc_media_list_player_new(libvlc_instance_t * p_instance, libvlc_exception_t * p_e) libvlc_media_list_player_new(libvlc_instance_t * p_instance)
{ {
(void)p_e;
libvlc_media_list_player_t * p_mlp; libvlc_media_list_player_t * p_mlp;
p_mlp = calloc( 1, sizeof(libvlc_media_list_player_t) ); p_mlp = calloc( 1, sizeof(libvlc_media_list_player_t) );
if (unlikely(p_mlp == NULL)) if (unlikely(p_mlp == NULL))
......
This diff is collapsed.
...@@ -62,8 +62,9 @@ mediacontrol_Instance* mediacontrol_new( int argc, char** argv, mediacontrol_Exc ...@@ -62,8 +62,9 @@ mediacontrol_Instance* mediacontrol_new( int argc, char** argv, mediacontrol_Exc
retval->p_instance = libvlc_new( argc, (const char**)argv, &ex ); retval->p_instance = libvlc_new( argc, (const char**)argv, &ex );
HANDLE_LIBVLC_EXCEPTION_NULL( &ex ); HANDLE_LIBVLC_EXCEPTION_NULL( &ex );
retval->p_media_player = libvlc_media_player_new( retval->p_instance, &ex ); retval->p_media_player = libvlc_media_player_new( retval->p_instance );
HANDLE_LIBVLC_EXCEPTION_NULL( &ex ); if( !retval->p_media_player )
RAISE_NULL( mediacontrol_InternalException, "Out of memory" );
return retval; return retval;
} }
...@@ -90,9 +91,6 @@ mediacontrol_new_from_instance( libvlc_instance_t* p_instance, ...@@ -90,9 +91,6 @@ mediacontrol_new_from_instance( libvlc_instance_t* p_instance,
mediacontrol_Exception *exception ) mediacontrol_Exception *exception )
{ {
mediacontrol_Instance* retval; mediacontrol_Instance* retval;
libvlc_exception_t ex;
libvlc_exception_init( &ex );
retval = ( mediacontrol_Instance* )malloc( sizeof( mediacontrol_Instance ) ); retval = ( mediacontrol_Instance* )malloc( sizeof( mediacontrol_Instance ) );
if( ! retval ) if( ! retval )
...@@ -100,8 +98,9 @@ mediacontrol_new_from_instance( libvlc_instance_t* p_instance, ...@@ -100,8 +98,9 @@ mediacontrol_new_from_instance( libvlc_instance_t* p_instance,
RAISE_NULL( mediacontrol_InternalException, "Out of memory" ); RAISE_NULL( mediacontrol_InternalException, "Out of memory" );
} }
retval->p_instance = p_instance; retval->p_instance = p_instance;
retval->p_media_player = libvlc_media_player_new( retval->p_instance, &ex ); retval->p_media_player = libvlc_media_player_new( retval->p_instance );
HANDLE_LIBVLC_EXCEPTION_NULL( &ex ); if( ! retval->p_media_player )
RAISE_NULL( mediacontrol_InternalException, "Out of memory" );
return retval; return retval;
} }
......
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