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

Retain SD name for matching purpose

parent 68c0d25f
......@@ -41,6 +41,15 @@
#include "fetcher.h"
#include "preparser.h"
typedef struct playlist_services_discovery_support_t {
/* the playlist items for category and onelevel */
playlist_item_t *p_cat;
playlist_item_t *p_one;
services_discovery_t *p_sd; /**< Loaded service discovery modules */
char *psz_name;
} vlc_sd_internal_t;
typedef struct playlist_private_t
{
playlist_t public_data;
......@@ -50,12 +59,7 @@ typedef struct playlist_private_t
playlist_item_array_t items_to_delete; /**< Array of items and nodes to
delete... At the very end. This sucks. */
struct playlist_services_discovery_support_t {
/* the playlist items for category and onelevel */
playlist_item_t* p_cat;
playlist_item_t* p_one;
services_discovery_t * p_sd; /**< Loaded service discovery modules */
} ** pp_sds;
vlc_sd_internal_t **pp_sds;
int i_sds; /**< Number of service discovery modules */
input_thread_t * p_input; /**< the input thread associated
* with the current item */
......
......@@ -289,6 +289,7 @@ int playlist_ServicesDiscoveryAdd( playlist_t *p_playlist, const char *psz_modul
p_sds->p_sd = p_sd;
p_sds->p_one = p_one;
p_sds->p_cat = p_cat;
p_sds->psz_name = strdup( psz_module );
PL_LOCK;
TAB_APPEND( pl_priv(p_playlist)->i_sds, pl_priv(p_playlist)->pp_sds, p_sds );
......@@ -357,6 +358,7 @@ int playlist_ServicesDiscoveryRemove( playlist_t * p_playlist,
PL_UNLOCK;
vlc_sd_Destroy( p_sd );
free( p_sds->psz_name );
free( p_sds );
return VLC_SUCCESS;
......
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