mirror of https://code.videolan.org/videolan/vlc
lib: remove useless libvlc_media_new_as_node() parameter
This commit is contained in:
parent
1943b38100
commit
dd3a55dfc9
|
@ -353,13 +353,10 @@ LIBVLC_API libvlc_media_t *libvlc_media_new_callbacks(
|
|||
*
|
||||
* \see libvlc_media_release
|
||||
*
|
||||
* \param p_instance the instance
|
||||
* \param psz_name the name of the node
|
||||
* \return the new empty media or NULL on error
|
||||
*/
|
||||
LIBVLC_API libvlc_media_t *libvlc_media_new_as_node(
|
||||
libvlc_instance_t *p_instance,
|
||||
const char * psz_name );
|
||||
LIBVLC_API libvlc_media_t *libvlc_media_new_as_node(const char * psz_name);
|
||||
|
||||
/**
|
||||
* Add an option to the media.
|
||||
|
|
|
@ -571,8 +571,7 @@ libvlc_media_t *libvlc_media_new_callbacks(libvlc_media_open_cb open_cb,
|
|||
}
|
||||
|
||||
// Create a media as an empty node with a given name
|
||||
libvlc_media_t * libvlc_media_new_as_node( libvlc_instance_t *p_instance,
|
||||
const char * psz_name )
|
||||
libvlc_media_t * libvlc_media_new_as_node(const char *psz_name)
|
||||
{
|
||||
input_item_t * p_input_item;
|
||||
libvlc_media_t * p_md;
|
||||
|
|
|
@ -81,7 +81,7 @@ static void services_discovery_item_added( services_discovery_t *sd,
|
|||
if( p_mlist == kVLCDictionaryNotFound )
|
||||
{
|
||||
libvlc_media_t * p_catmd;
|
||||
p_catmd = libvlc_media_new_as_node( p_mdis->p_libvlc_instance, psz_cat );
|
||||
p_catmd = libvlc_media_new_as_node( psz_cat );
|
||||
p_mlist = libvlc_media_subitems( p_catmd );
|
||||
p_mlist->b_read_only = true;
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ static void test_media_list_player_items_queue(const char** argv, int argc)
|
|||
queue_expected_item(&check, media_list_add_file_path (vlc, ml, file));
|
||||
|
||||
// Add a node
|
||||
libvlc_media_t *node = libvlc_media_new_as_node(vlc, "node");
|
||||
libvlc_media_t *node = libvlc_media_new_as_node("node");
|
||||
assert(node);
|
||||
libvlc_media_list_add_media(ml, node);
|
||||
queue_expected_item(&check, node);
|
||||
|
|
Loading…
Reference in New Issue