Hello community, here is the log from the commit of package QMPlay2 for openSUSE:Factory checked in at 2019-12-23 22:46:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/QMPlay2 (Old) and /work/SRC/openSUSE:Factory/.QMPlay2.new.6675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "QMPlay2" Mon Dec 23 22:46:13 2019 rev:42 rq:758953 version:19.12.19 Changes: -------- --- /work/SRC/openSUSE:Factory/QMPlay2/QMPlay2.changes 2019-12-05 17:34:43.117444954 +0100 +++ /work/SRC/openSUSE:Factory/.QMPlay2.new.6675/QMPlay2.changes 2019-12-23 22:48:59.294101857 +0100 @@ -1,0 +2,8 @@ +Sun Dec 22 00:04:26 UTC 2019 - Simon Vogl <[email protected]> + +- Update to version 19.12.19 + * fix VA-API low quality deinterlaced image on AMD GPUs (workaround for driver bug), + * fix VA-API GLX regression, + * fix VA-API EGL detection. + +------------------------------------------------------------------- Old: ---- QMPlay2-src-19.12.04.tar.xz New: ---- QMPlay2-src-19.12.19.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ QMPlay2.spec ++++++ --- /var/tmp/diff_new_pack.Vs8YCK/_old 2019-12-23 22:49:00.082102147 +0100 +++ /var/tmp/diff_new_pack.Vs8YCK/_new 2019-12-23 22:49:00.086102149 +0100 @@ -17,7 +17,7 @@ Name: QMPlay2 -Version: 19.12.04 +Version: 19.12.19 Release: 0 Summary: A Qt based media player, streamer and downloader License: LGPL-3.0-or-later ++++++ QMPlay2-src-19.12.04.tar.xz -> QMPlay2-src-19.12.19.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/QMPlay2-src-19.12.04/ChangeLog new/QMPlay2-src-19.12.19/ChangeLog --- old/QMPlay2-src-19.12.04/ChangeLog 2019-12-04 00:31:04.000000000 +0100 +++ new/QMPlay2-src-19.12.19/ChangeLog 2019-12-19 22:30:23.000000000 +0100 @@ -1,3 +1,8 @@ +Changes in QMPlay2 19.12.19: + - fix VA-API low quality deinterlaced image on AMD GPUs (workaround for driver bug), + - fix VA-API GLX regression, + - fix VA-API EGL detection, + Changes in QMPlay2 build 19.12.04: - fix reading of titles for some M3U playlists, - fix possible corrupted DXVA2 video playback, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/QMPlay2-src-19.12.04/README.md new/QMPlay2-src-19.12.19/README.md --- old/QMPlay2-src-19.12.04/README.md 2019-12-02 20:42:00.000000000 +0100 +++ new/QMPlay2-src-19.12.19/README.md 2019-12-15 21:56:46.000000000 +0100 @@ -35,15 +35,23 @@ - Install AUR client (e.g. yay), - run the following command: `yay -S qmplay2` -#### Easy installation on openSUSE Leap 15.1 - +#### Easy installation on openSUSE +##### For openSUSE Leap 15.1: - Run the following commands: ``` $ sudo zypper ar http://packman.inode.at/suse/openSUSE_Leap_15.1 Packman +$ suod zypper ar http://download.opensuse.org/repositories/multimedia:/apps/openSUSE_Leap_15.1 +$ sudo zypper dup --allow-vendor-change --from http://packman.inode.at/suse/openSUSE_Leap_15.1 +$ sudo zypper dup --allow-vendor-change --from http://download.opensuse.org/repositories/multimedia:/apps/openSUSE_Leap_15.1 +$ sudo zypper in QMPlay2 +``` +##### For openSUSE Tumbleweed: +- Run the following commands: +``` +$ sudo zypper ar http://packman.inode.at/suse/openSUSE_Tumbleweed Packman +$ sudo zypper dup --allow-vendor-change --from http://packman.inode.at/suse/openSUSE_Tumbleweed $ sudo zypper in QMPlay2 ``` -- QMPlay2 from openSUSE repositories might lack some features. -- Don't use official package, because it is obsolete. - Don't mix FFmpeg from different repositories! #### Easy installation on Gentoo Linux diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/QMPlay2-src-19.12.04/src/gui/Main.cpp new/QMPlay2-src-19.12.19/src/gui/Main.cpp --- old/QMPlay2-src-19.12.04/src/gui/Main.cpp 2019-11-25 21:11:05.000000000 +0100 +++ new/QMPlay2-src-19.12.19/src/gui/Main.cpp 2019-12-19 22:30:08.000000000 +0100 @@ -46,6 +46,7 @@ #include <QLibrary> #endif +#include <clocale> #include <csignal> #include <ctime> @@ -557,7 +558,12 @@ constexpr int EGLDrmDeviceFileExt = 0x3233; void *eglDev = nullptr; if (eglQueryDisplayAttribEXTFunc(eglDpy, EGLDeviceExt, &eglDev) && eglDev) - cardFilePath = eglQueryDeviceStringEXTFunc(eglDev, EGLDrmDeviceFileExt); + { + if (const char *file = eglQueryDeviceStringEXTFunc(eglDev, EGLDrmDeviceFileExt)) + cardFilePath = file; + else + cardFilePath = ""; + } } } eglTerminateFunc(eglDpy); @@ -565,11 +571,11 @@ XCloseDisplayFunc(dpy); - if (!cardFilePath.isEmpty()) + if (!cardFilePath.isNull()) { if (!qEnvironmentVariableIsSet("QT_XCB_GL_INTEGRATION")) qputenv("QT_XCB_GL_INTEGRATION", "xcb_egl"); - if (!qEnvironmentVariableIsSet("QMPLAY2_EGL_CARD_FILE_PATH")) + if (!qEnvironmentVariableIsSet("QMPLAY2_EGL_CARD_FILE_PATH") && !cardFilePath.isEmpty()) qputenv("QMPLAY2_EGL_CARD_FILE_PATH", cardFilePath); } } @@ -604,6 +610,11 @@ if (!setjmp(env)) #endif new QApplication(argc, argv); + + // Qt sets this to system locale. Mesa Radeon VA-API driver lowers the image quality + // on some locales in some cases. Reset it for all platforms for consistency. + std::setlocale(LC_NUMERIC, "C"); + #ifndef Q_OS_WIN qAppOK = true; #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/QMPlay2-src-19.12.04/src/modules/FFmpeg/FFDecVAAPI.cpp new/QMPlay2-src-19.12.19/src/modules/FFmpeg/FFDecVAAPI.cpp --- old/QMPlay2-src-19.12.04/src/modules/FFmpeg/FFDecVAAPI.cpp 2019-12-02 20:42:00.000000000 +0100 +++ new/QMPlay2-src-19.12.19/src/modules/FFmpeg/FFDecVAAPI.cpp 2019-12-15 21:51:47.000000000 +0100 @@ -107,7 +107,14 @@ setTextureParamsFn(m_textures[p]); if (!m_isEGL) + { + if (m_glSurface) + return true; + glBindTexture(GL_TEXTURE_2D, m_textures[0]); + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, m_widths[0], m_heights[0], 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); + glBindTexture(GL_TEXTURE_2D, m_textures[0]); return (vaCreateSurfaceGLX(m_vaapi->VADisp, GL_TEXTURE_2D, m_textures[0], &m_glSurface) == VA_STATUS_SUCCESS); + } #ifdef VAAPI_HAS_ESH if (m_eglDpy != EGL_NO_DISPLAY && eglCreateImageKHR && eglDestroyImageKHR && glEGLImageTargetTexture2DOES) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/QMPlay2-src-19.12.04/src/qmplay2/Version.cpp new/QMPlay2-src-19.12.19/src/qmplay2/Version.cpp --- old/QMPlay2-src-19.12.04/src/qmplay2/Version.cpp 2019-12-04 00:32:27.000000000 +0100 +++ new/QMPlay2-src-19.12.19/src/qmplay2/Version.cpp 2019-12-19 22:31:59.000000000 +0100 @@ -25,7 +25,7 @@ #ifndef QMPlay2GitHEAD #define QMPlay2GitHEAD #endif -#define QMPlay2Version "19.12.04" QMPlay2GitHEAD +#define QMPlay2Version "19.12.19" QMPlay2GitHEAD QByteArray Version::get() {
