mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-26 12:21:39 +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;
|
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!");
|
dbus_message_iter_recurse(&rootIterator, &arrayIterator);
|
||||||
return false;
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
arrayIterator = rootIterator;
|
||||||
}
|
}
|
||||||
|
|
||||||
dbus_message_iter_recurse(&rootIterator, &arrayIterator);
|
dbus_message_iter_recurse(&rootIterator, &arrayIterator);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue