Cannot Run from Debugger. Running from Command Line is Fine

I just built OBS on a Windows machine. It runs fine when launching from the rundir bin debug folder, but when I attempt to run from the debugger (Visual Studio 2019) with the "run directory" set to the same command line folder, I get this:


encoder 'simple_h264_stream' (obs_x264) created
Failed to get properties for encoder '' (ffmpeg_aac)
Could not enumerate any AAC encoder bitrates
load_graphics_offsets: Failed to start 'get-graphics-offsets32.exe'
The program '[2292] obs64.exe' has exited with code 0 (0x0).

This is the method that fails in "windows-basic-main-outputs.cpp" line 208 in latest source (as of March1, 2021):

const char *GetAACEncoderForBitrate(int bitrate)
{
auto &map_ = GetAACEncoderBitrateMap();
auto res = map_.find(bitrate);
if (res == end(map_))
return NULL;
return res->second;
}

Why can I run from the command line, but not from within the debugger?

How do I solve this?

- da
 
Top