mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-21 20:05:42 +02:00
module/mpd: silence overflow warning
This commit is contained in:
parent
fa7a2f90a5
commit
d86c9914e5
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ content(struct module *mod)
|
||||||
if (m->state == STATE_PLAY) {
|
if (m->state == STATE_PLAY) {
|
||||||
elapsed += timespec_diff_milli_seconds(&now, &m->elapsed.when);
|
elapsed += timespec_diff_milli_seconds(&now, &m->elapsed.when);
|
||||||
if (elapsed > m->duration) {
|
if (elapsed > m->duration) {
|
||||||
LOG_WARN(
|
LOG_DBG(
|
||||||
"dynamic update of elapsed overflowed: "
|
"dynamic update of elapsed overflowed: "
|
||||||
"elapsed=%"PRIu64", duration=%"PRIu64, elapsed, m->duration);
|
"elapsed=%"PRIu64", duration=%"PRIu64, elapsed, m->duration);
|
||||||
elapsed = m->duration;
|
elapsed = m->duration;
|
||||||
|
|
Loading…
Add table
Reference in a new issue