mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-03-28 14:12:09 +00:00
Handle when PlaybackStatus doesn't return variant
This commit is contained in:
parent
809c4fcb93
commit
34896b0205
1 changed files with 6 additions and 3 deletions
|
|
@ -151,10 +151,13 @@ static bool IsMediaPlayerPlaying(DBusConnection* connection, const std::string&
|
|||
return false;
|
||||
}
|
||||
|
||||
if (dbus_message_iter_get_arg_type(&rootIterator) != DBUS_TYPE_VARIANT)
|
||||
if (dbus_message_iter_get_arg_type(&rootIterator) == DBUS_TYPE_VARIANT)
|
||||
{
|
||||
LOG_ERROR("D-Bus message returned invalid type!");
|
||||
return false;
|
||||
dbus_message_iter_recurse(&rootIterator, &arrayIterator);
|
||||
}
|
||||
else
|
||||
{
|
||||
arrayIterator = rootIterator;
|
||||
}
|
||||
|
||||
dbus_message_iter_recurse(&rootIterator, &arrayIterator);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue