htsbuf_qprintf(hq, "#EXTM3U\n");
http_m3u_playlist_add(hq, hostpath, buf, profile, name, hc->hc_access);
- http_output_content(hc, MIME_M3U);
} else if (pltype == PLAYLIST_E2) {
htsbuf_qprintf(hq, "#NAME %s\n", name);
http_e2_playlist_add(hq, hostpath, buf, profile, name);
- http_output_content(hc, MIME_E2);
}
free(chlist);
- http_output_content(hc, pltype == PLAYLIST_E2 ? MIME_E2 : MIME_M3U);
-
free(hostpath);
free(profile);
return 0;
free(ctlist);
free(chlist);
- http_output_content(hc, pltype == PLAYLIST_E2 ? MIME_E2 : MIME_M3U);
-
free(hostpath);
free(profile);
return 0;
free(chlist);
- http_output_content(hc, pltype == PLAYLIST_E2 ? MIME_E2 : MIME_M3U);
-
free(hostpath);
free(profile);
return 0;
access_ticket_create(buf, hc->hc_access));
}
- http_output_content(hc, MIME_M3U);
-
free(hostpath);
return 0;
}
snprintf(buf, sizeof(buf), "/dvrfile/%s", uuid);
ticket_id = access_ticket_create(buf, hc->hc_access);
htsbuf_qprintf(hq, "%s%s?ticket=%s\n", hostpath, buf, ticket_id);
-
- http_output_content(hc, MIME_M3U);
} else {
ret = HTTP_STATUS_NOT_FOUND;
}
pthread_mutex_unlock(&global_lock);
+ if (r == 0)
+ http_output_content(hc, pltype == PLAYLIST_E2 ? MIME_E2 : MIME_M3U);
+
return r;
}