mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 14:46:04 +02:00
Parse AVPro video errors
This commit is contained in:
+29
-6
@@ -588,12 +588,14 @@ namespace VRCX
|
|||||||
// 2021.04.08 06:37:45 Error - [Video Playback] ERROR: Video unavailable
|
// 2021.04.08 06:37:45 Error - [Video Playback] ERROR: Video unavailable
|
||||||
// 2021.04.08 06:40:07 Error - [Video Playback] ERROR: Private video
|
// 2021.04.08 06:40:07 Error - [Video Playback] ERROR: Private video
|
||||||
|
|
||||||
if (string.Compare(line, offset, "[Video Playback] ERROR: ", 0, 24, StringComparison.Ordinal) != 0)
|
// 2024.07.31 22:28:47 Error - [AVProVideo] Error: Loading failed. File not found, codec not supported, video resolution too high or insufficient system resources.
|
||||||
return false;
|
// 2024.07.31 23:04:15 Error - [AVProVideo] Error: Loading failed. File not found, codec not supported, video resolution too high or insufficient system resources.
|
||||||
|
|
||||||
var data = line.Substring(offset + 24);
|
if (line.Contains("[Video Playback] ERROR: "))
|
||||||
if (data == logContext.LastVideoError)
|
{
|
||||||
return true;
|
var data = line.Substring(offset + 24);
|
||||||
|
if (data == logContext.LastVideoError)
|
||||||
|
return true;
|
||||||
logContext.LastVideoError = data;
|
logContext.LastVideoError = data;
|
||||||
|
|
||||||
AppendLog(new[]
|
AppendLog(new[]
|
||||||
@@ -604,7 +606,28 @@ namespace VRCX
|
|||||||
"VideoError: " + data
|
"VideoError: " + data
|
||||||
});
|
});
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (line.Contains("[AVProVideo] Error: "))
|
||||||
|
{
|
||||||
|
var data = line.Substring(offset + 20);
|
||||||
|
if (data == logContext.LastVideoError)
|
||||||
|
return true;
|
||||||
|
logContext.LastVideoError = data;
|
||||||
|
|
||||||
|
AppendLog(new[]
|
||||||
|
{
|
||||||
|
fileInfo.Name,
|
||||||
|
ConvertLogTimeToISO8601(line),
|
||||||
|
"event",
|
||||||
|
"VideoError: " + data
|
||||||
|
});
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool ParseLogWorldVRCX(FileInfo fileInfo, LogContext logContext, string line, int offset)
|
private bool ParseLogWorldVRCX(FileInfo fileInfo, LogContext logContext, string line, int offset)
|
||||||
|
|||||||
Reference in New Issue
Block a user