mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 16:25:39 +02:00
module_mpris: Removed incorrect/redundant include
This commit is contained in:
parent
c2ba93aa4f
commit
b7a7bc7db2
1 changed files with 4 additions and 1 deletions
|
@ -23,7 +23,6 @@
|
||||||
#include "../plugin.h"
|
#include "../plugin.h"
|
||||||
|
|
||||||
#include "dbus.h"
|
#include "dbus.h"
|
||||||
#include "yml.h"
|
|
||||||
|
|
||||||
#define is_empty_string(str) ((str) == NULL || (str)[0] == '\0')
|
#define is_empty_string(str) ((str) == NULL || (str)[0] == '\0')
|
||||||
|
|
||||||
|
@ -1070,10 +1069,12 @@ run(struct module *mod)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mtx_lock(&mod->lock);
|
||||||
if (!context_process_events(context, m->timeout_ms)) {
|
if (!context_process_events(context, m->timeout_ms)) {
|
||||||
aborted = true;
|
aborted = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
mtx_unlock(&mod->lock);
|
||||||
|
|
||||||
/* Process dynamic updates, received through the contexts
|
/* Process dynamic updates, received through the contexts
|
||||||
* monitor connection. The 'upate_message' attribute is set
|
* monitor connection. The 'upate_message' attribute is set
|
||||||
|
@ -1083,9 +1084,11 @@ run(struct module *mod)
|
||||||
assert(context->current_client != NULL);
|
assert(context->current_client != NULL);
|
||||||
assert(context->update_message != NULL);
|
assert(context->update_message != NULL);
|
||||||
|
|
||||||
|
mtx_lock(&mod->lock);
|
||||||
context->has_update = false;
|
context->has_update = false;
|
||||||
aborted = !update_client_from_message(context->current_client, context->update_message);
|
aborted = !update_client_from_message(context->current_client, context->update_message);
|
||||||
context->update_message = sd_bus_message_unref(context->update_message);
|
context->update_message = sd_bus_message_unref(context->update_message);
|
||||||
|
mtx_unlock(&mod->lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
bar->refresh(bar);
|
bar->refresh(bar);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue