Warn when no hardware decoding is available

This commit is contained in:
Cameron Gutman
2018-07-26 00:41:46 -07:00
parent 42988e0dbf
commit f5499be215
4 changed files with 38 additions and 4 deletions

View File

@@ -21,6 +21,10 @@ public:
Q_INVOKABLE void exec();
static
bool isHardwareDecodeAvailable(StreamingPreferences::VideoDecoderSelection vds,
int videoFormat, int width, int height, int frameRate);
signals:
void stageStarting(QString stage);
@@ -45,10 +49,6 @@ private:
void toggleFullscreen();
static
bool isHardwareDecodeAvailable(StreamingPreferences::VideoDecoderSelection vds,
int videoFormat, int width, int height, int frameRate);
static
bool chooseDecoder(StreamingPreferences::VideoDecoderSelection vds,
SDL_Window* window, int videoFormat, int width, int height,