mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 02:34:23 -05:00
obs-ffmpeg: Use gai_strerrorA for error logging on Windows
Avoids wide characters in the format string which cause truncation.
This commit is contained in:
@@ -489,7 +489,13 @@ static int libsrt_setup(URLContext *h, const char *uri)
|
||||
if (ret) {
|
||||
blog(LOG_ERROR,
|
||||
"[obs-ffmpeg mpegts muxer / libsrt]: Failed to resolve hostname %s: %s",
|
||||
hostname, gai_strerror(ret));
|
||||
hostname,
|
||||
#ifdef _WIN32
|
||||
gai_strerrorA(ret)
|
||||
#else
|
||||
gai_strerror(ret)
|
||||
#endif
|
||||
);
|
||||
return OBS_OUTPUT_CONNECT_FAILED;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user