Browse Source

lib: remove useless libvlc_media_new_fd() parameter

pull/136/head
Rémi Denis-Courmont 4 years ago
parent
commit
cd72cc377b
  1. 5
      include/vlc/libvlc_media.h
  2. 2
      lib/media.c
  3. 2
      test/libvlc/media.c

5
include/vlc/libvlc_media.h

@ -311,13 +311,10 @@ LIBVLC_API libvlc_media_t *libvlc_media_new_path(const char *path);
*
* \version LibVLC 1.1.5 and later.
*
* \param p_instance the instance
* \param fd open file descriptor
* \return the newly created media or NULL on error
*/
LIBVLC_API libvlc_media_t *libvlc_media_new_fd(
libvlc_instance_t *p_instance,
int fd );
LIBVLC_API libvlc_media_t *libvlc_media_new_fd(int fd);
/**
* Create a media with custom callbacks to read the data from.

2
lib/media.c

@ -542,7 +542,7 @@ libvlc_media_t *libvlc_media_new_path(const char *path)
}
// Create a media for an already open file descriptor
libvlc_media_t *libvlc_media_new_fd( libvlc_instance_t *p_instance, int fd )
libvlc_media_t *libvlc_media_new_fd(int fd)
{
char mrl[16];
snprintf( mrl, sizeof(mrl), "fd://%d", fd );

2
test/libvlc/media.c

@ -337,7 +337,7 @@ static void test_media_subitems(libvlc_instance_t *vlc)
int fd = open (subitems_path, O_RDONLY);
test_log ("Testing media_subitems: fd: '%d'\n", fd);
assert (fd >= 0);
media = libvlc_media_new_fd (vlc, fd);
media = libvlc_media_new_fd(fd);
assert (media != NULL);
test_media_subitems_media(vlc, media, true, true);
libvlc_media_release (media);

Loading…
Cancel
Save