Browse Source

lib: remove unused libvlc_playlist_play() parameters

pull/70/head
Rémi Denis-Courmont 8 years ago
parent
commit
1d233ef6be
  1. 2
      bin/darwinvlc.m
  2. 2
      bin/vlc.c
  3. 2
      bin/winvlc.c
  4. 8
      include/vlc/deprecated.h
  5. 4
      lib/playlist.c

2
bin/darwinvlc.m

@ -292,7 +292,7 @@ int main(int i_argc, const char *ppsz_argv[])
fprintf(stderr, "VLC cannot start any interface. Exiting.\n");
goto out;
}
libvlc_playlist_play(vlc, -1, 0, NULL);
libvlc_playlist_play(vlc);
/*
* Run the main loop. If the mac interface is not initialized, only the CoreFoundation

2
bin/vlc.c

@ -246,7 +246,7 @@ int main(int argc, const char *argv[])
goto out;
}
libvlc_playlist_play (vlc, -1, 0, NULL);
libvlc_playlist_play (vlc);
/* Qt insists on catching SIGCHLD via signal handler. To work around that,
* unblock it after all our child threads are created. */

2
bin/winvlc.c

@ -246,7 +246,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
libvlc_add_intf (vlc, "hotkeys,none");
libvlc_add_intf (vlc, "globalhotkeys,none");
libvlc_add_intf (vlc, NULL);
libvlc_playlist_play (vlc, -1, 0, NULL);
libvlc_playlist_play (vlc);
libvlc_wait (vlc);
libvlc_release (vlc);
}

8
include/vlc/deprecated.h

@ -189,15 +189,9 @@ void libvlc_wait( libvlc_instance_t *p_instance );
* item before it is played.
*
* \param p_instance the playlist instance
* \param i_id the item to play. If this is a negative number, the next
* item will be selected. Otherwise, the item with the given ID will be
* played
* \param i_options the number of options to add to the item
* \param ppsz_options the options to add to the item
*/
LIBVLC_DEPRECATED LIBVLC_API
void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
int i_options, char **ppsz_options );
void libvlc_playlist_play( libvlc_instance_t *p_instance );
/** @}*/

4
lib/playlist.c

@ -34,11 +34,9 @@
#include <assert.h>
void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
int i_options, char **ppsz_options )
void libvlc_playlist_play( libvlc_instance_t *p_instance )
{
libvlc_InternalPlay( p_instance->p_libvlc_int );
VLC_UNUSED(i_id); VLC_UNUSED(i_options); VLC_UNUSED(ppsz_options);
}
int libvlc_add_intf( libvlc_instance_t *p_instance, const char *name )

Loading…
Cancel
Save