detect unsupported (non-youtube) HLS

This commit is contained in:
F. Duncanh
2025-02-02 17:35:05 -05:00
parent e60bf9caee
commit 14e6ba5543
7 changed files with 56 additions and 27 deletions

View File

@@ -1630,8 +1630,18 @@ extern "C" void conn_feedback (void *cls) {
missed_feedback = 0;
}
extern "C" void conn_reset (void *cls) {
LOGI("***ERROR lost connection with client (network problem?)");
extern "C" void conn_reset (void *cls, int reason) {
switch (reason) {
case 1:
LOGI("*** ERROR lost connection with client (network problem?)");
break;
case 2:
LOGI("*** ERROR Unsupported HLS streaming source: (exit attempt to stream)");
break;
default:
break;
}
if (!nofreeze) {
close_window = false; /* leave "frozen" window open */
}