plugin ad-hoc D-Bus: fixed warning when no media player is found
This commit is contained in:
parent
420bc6bcfe
commit
9487b0534b
1 changed files with 4 additions and 1 deletions
|
|
@ -346,6 +346,8 @@ class AdHocDBus(object):
|
|||
NS_MEDIA_PLAYER, timeout=5)
|
||||
command_elt = self._c.getCommandElt(result_elt)
|
||||
form = data_form.findForm(command_elt, NS_MEDIA_PLAYER)
|
||||
if form is None:
|
||||
continue
|
||||
mp_options = form.fields['media_player'].options
|
||||
session_id = command_elt.getAttribute('sessionid')
|
||||
if mp_options and session_id:
|
||||
|
|
|
|||
Loading…
Reference in a new issue