Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions SerialPrograms/Source/CommonFramework/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,14 @@ int main(int argc, char *argv[]){
set_program_path(argv[0]);
#endif

#if defined(__linux__)
// Qt multimedia, default to gstreamer to prevent flickering
// Easier than the alternative which is compiling qt6multimedia with QT_DEFAULT_MEDIA_BACKEND
// See: https://doc.qt.io/qt-6.5/qtmultimedia-index.html
if (qEnvironmentVariableIsEmpty("QT_MEDIA_BACKEND"))
qputenv("QT_MEDIA_BACKEND", "gstreamer");
#endif

// So far, this is only needed on Mac where static initialization is fucked up.
PokemonAutomation::register_all_statics();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ class VideoPipelineOptions : public GroupOption{
, AUTO_RESET_SECONDS(
"<b>Video Auto-Reset:</b><br>"
"Attempt to reset the video if this many seconds has elapsed since the last video frame (in order to fix issues with RDP disconnection, etc).<br>"
"This option is not supported by all video frameworks.",
"This option is not supported by all video frameworks. Set to a value of 0 to disable Auto-Reset.",
LockMode::UNLOCK_WHILE_RUNNING,
#if defined(__linux__)
0 // Default to disabled on linux, auto-resets briefly output black frames
#else
5
#endif
)
{
PA_ADD_OPTION(VIDEO_BACKEND);
Expand Down
Loading