File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ static bool createQApplicationIfNeeded(mlt_service service)
142142#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
143143 if (getenv (" DISPLAY" ) == 0 && getenv (" WAYLAND_DISPLAY" ) == 0 ) {
144144 const char *qt_qpa = getenv (" QT_QPA_PLATFORM" );
145- if (qt_qpa == 0 || strcmp (qt_qpa, " offscreen" ) != 0 ) {
145+ if (! qt_qpa || strcmp (qt_qpa, " offscreen" )) {
146146 mlt_log_error (service,
147147 " The MLT Glaxnimate module requires a X11 or Wayland environment.\n "
148148 " Please either run melt from a session with a display server or use a "
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ bool createQApplicationIfNeeded(mlt_service service)
3838#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC) && !defined(Q_OS_ANDROID)
3939 if (getenv (" DISPLAY" ) == 0 && getenv (" WAYLAND_DISPLAY" ) == 0 ) {
4040 const char *qt_qpa = getenv (" QT_QPA_PLATFORM" );
41- if (qt_qpa == 0 || strcmp (qt_qpa, " offscreen" ) != 0 ) {
41+ if (! qt_qpa || strcmp (qt_qpa, " offscreen" )) {
4242 mlt_log_error (service,
4343 " The MLT Qt module requires a X11 or Wayland environment.\n "
4444 " Please either run melt from a session with a display server or use a "
You can’t perform that action at this time.
0 commit comments