(Windows) Changed a debug output entry in VideoFFmpegComponent to convert forward slashes to backslashes.

This commit is contained in:
Leon Styhre 2023-01-01 19:59:08 +01:00
parent 14567baab4
commit 549d78dfed

View file

@ -14,6 +14,7 @@
#include "Settings.h"
#include "Window.h"
#include "resources/TextureResource.h"
#include "utils/StringUtil.h"
#include <SDL2/SDL.h>
@ -1368,7 +1369,12 @@ void VideoFFmpegComponent::startVideoStream()
mVideoHeight = mFormatContext->streams[mVideoStreamIndex]->codecpar->height;
LOG(LogDebug) << "VideoFFmpegComponent::startVideoStream(): "
#if defined(_WIN64)
<< "Playing video \"" << Utils::String::replace(mVideoPath, "/", "\\")
<< "\" (codec: "
#else
<< "Playing video \"" << mVideoPath << "\" (codec: "
#endif
<< avcodec_get_name(
mFormatContext->streams[mVideoStreamIndex]->codecpar->codec_id)
<< ", decoder: " << (hwDecoding ? "hardware" : "software") << ")";