aboutsummaryrefslogtreecommitdiff
path: root/video_player/src
diff options
context:
space:
mode:
Diffstat (limited to 'video_player/src')
-rw-r--r--video_player/src/main.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/video_player/src/main.cpp b/video_player/src/main.cpp
index 54b5bb4..e2a8629 100644
--- a/video_player/src/main.cpp
+++ b/video_player/src/main.cpp
@@ -473,8 +473,14 @@ static int64_t size_fn(void *cookie) {
if(res == 0) {
size_t header_start = str_find_case_insensitive(buffer, 0, "200 OK", 6);
if(header_start == std::string::npos) {
- res = MPV_ERROR_UNSUPPORTED;
- goto end;
+ header_start = str_find_case_insensitive(buffer, 0, "HTTP/3 200", 10);
+ if(header_start == std::string::npos)
+ header_start = str_find_case_insensitive(buffer, 0, "HTTP/2 200", 10);
+
+ if(header_start == std::string::npos) {
+ res = MPV_ERROR_UNSUPPORTED;
+ goto end;
+ }
}
header_start += 6;