Skip to content

Commit 755ee4d

Browse files
committed
fix: fix multiple compile errors
1 parent 5420882 commit 755ee4d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/graphics/video_renderer_embedded.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,8 @@ namespace {
406406

407407
// flush encoder and decoder
408408
// this is not necessary atm, but may be necessary in the future
409+
//TODO(Totto): do it nevertheless
410+
//NOTE: this is the case, since we send whole frames at once, trough the pipe, so if that changes, the video might get corrupted or miss a frame at the end
409411

410412
// write the trailer, some video containers require this, like e.g. mp4
411413
auto trailer_ret = av_write_trailer(output_format_ctx);

src/helper/graphic_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ OOPETRIS_GRAPHICS_EXPORTED void utils::set_thread_name(const char* name) {
206206
#elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
207207
std::wstring name_w{};
208208
for (std::size_t i = 0; i < strlen(name); ++i) {
209-
result += name[i];
209+
name_w += name[i];
210210
}
211211

212212
SetThreadDescription(GetCurrentThread(), name_w.c_str());

0 commit comments

Comments
 (0)