mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
detect unsupported (non-youtube) HLS
This commit is contained in:
14
uxplay.cpp
14
uxplay.cpp
@@ -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 */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user