mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kutils: do not issue warning from option getter
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
33ed6e81ea
commit
4077bf11db
1 changed files with 5 additions and 4 deletions
|
@ -65,12 +65,14 @@ static bool s_fullscreen = false;
|
|||
} \
|
||||
}
|
||||
|
||||
// certain properties are not available when not playing for an example thus do not issue warning
|
||||
// in case of error
|
||||
#define COMMON_OPTION_GETTER \
|
||||
kDebug() << i18n("getting option") << name; \
|
||||
if (d->m_handle) { \
|
||||
const QVariant result = mpv::qt::get_property(d->m_handle, name); \
|
||||
if (mpv::qt::is_error(result)) { \
|
||||
kWarning() << name << mpv_error_string(mpv::qt::get_error(result)); \
|
||||
kDebug() << name << mpv_error_string(mpv::qt::get_error(result)); \
|
||||
return QVariant(); \
|
||||
} \
|
||||
return result; \
|
||||
|
@ -201,9 +203,8 @@ public:
|
|||
#endif
|
||||
QString m_playerid;
|
||||
KSettings *m_settings;
|
||||
// the handle pointer is not NULL-ed once mpv_terminate_destroy() has been
|
||||
// called, doing it manually is a race because _processHandleEvents() is
|
||||
// called asynchronous
|
||||
// the handle pointer is not NULL-ed once mpv_terminate_destroy() has been called, doing it
|
||||
// manually is a race because _processHandleEvents() is called asynchronous
|
||||
bool m_stopprocessing;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue