Skip to content

Conversation

@SteveErl
Copy link
Contributor

MythVideoProfile::InitStatics() gets called for several applications, including mythfrontend, mythtranscode, mythcommflag, and mythpreviewgen. An error log gets generated when the application does not have control of the MythTv main window. However, this only makes sense for mythfrontend.

This code change will only allow generation of the error log message for the mythfrontend application. We still return out of the function for non-frontend applications because failing to do so will lead to errors. The code which follows tries to create a QWidget which cannot be done without a QApplication which cannot be created without a MythTv main window to run it in.

Resolves: #1018

Checklist

MythVideoProfile::InitStatics() gets called for several
applications, including mythfrontend, mythtranscode,
mythcommflag, and mythpreviewgen. An error log gets
generated when the application does not have
control of the myth main window. However, this only
makes sense for mythfrontend.

This code change adds a test for the frontend,
and will only generate the error log message if
that test is true.

Resolves: MythTV#1018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VideoProfile: No window! "errors"

1 participant