[vlc-commits] sd: fix configuration chain "longname" parsing
Pierre Ynard
git at videolan.org
Tue Nov 15 01:41:08 CET 2016
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Nov 15 01:26:53 2016 +0100| [80bd6e9bd263af4d2b5464bd51e2372e21fb8daf] | committer: Pierre Ynard
sd: fix configuration chain "longname" parsing
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=80bd6e9bd263af4d2b5464bd51e2372e21fb8daf
---
src/playlist/services_discovery.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/playlist/services_discovery.c b/src/playlist/services_discovery.c
index d8f75e0..0efdabe 100644
--- a/src/playlist/services_discovery.c
+++ b/src/playlist/services_discovery.c
@@ -237,10 +237,10 @@ int playlist_ServicesDiscoveryAdd(playlist_t *playlist, const char *chain)
msg_Dbg(playlist, "adding services_discovery %s...", name);
for (config_chain_t *p = cfg; p != NULL; p = p->p_next)
- if (cfg->psz_name != NULL && !strcmp(cfg->psz_name, "longname"))
+ if (p->psz_name != NULL && !strcmp(p->psz_name, "longname"))
{
- if (cfg->psz_value != NULL)
- longname = cfg->psz_value;
+ if (p->psz_value != NULL)
+ longname = p->psz_value;
break;
}
More information about the vlc-commits
mailing list