Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
iptv auto: cleanups, fix mux name
  • Loading branch information
perexg committed Sep 30, 2016
1 parent b23686a commit 72b014c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/input/mpegts/iptv/iptv_auto.c
Expand Up @@ -194,7 +194,10 @@ iptv_auto_network_process_m3u_item(iptv_network_t *in,

skip_url:
if (last_url) {
snprintf(n = name2, sizeof(name2), "%s - %s", last_url, name);
if (name[0])
snprintf(n = name2, sizeof(name2), "%s - %s", last_url, name);
else
n = (char *)last_url;
} else {
n = (char *)name;
}
Expand All @@ -203,7 +206,7 @@ iptv_auto_network_process_m3u_item(iptv_network_t *in,
im = (iptv_mux_t *)mm;
if (strcmp(im->mm_iptv_url ?: "", url) == 0) {
im->im_delete_flag = 0;
if (strcmp(im->mm_iptv_svcname ?: "", name ?: "")) {
if (strcmp(im->mm_iptv_svcname ?: "", name)) {
free(im->mm_iptv_svcname);
im->mm_iptv_svcname = strdup(name);
change = 1;
Expand Down

0 comments on commit 72b014c

Please sign in to comment.