mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
bluez5: fix uninitialized value warning
This commit is contained in:
parent
97dd95ddec
commit
1efb43b897
1 changed files with 1 additions and 1 deletions
|
|
@ -1834,7 +1834,7 @@ static int impl_node_process(void *object)
|
||||||
if (this->position) {
|
if (this->position) {
|
||||||
this->current_time = this->position->clock.nsec;
|
this->current_time = this->position->clock.nsec;
|
||||||
} else {
|
} else {
|
||||||
struct timespec now;
|
struct timespec now = { 0 };
|
||||||
spa_system_clock_gettime(this->data_system, CLOCK_MONOTONIC, &now);
|
spa_system_clock_gettime(this->data_system, CLOCK_MONOTONIC, &now);
|
||||||
this->current_time = SPA_TIMESPEC_TO_NSEC(&now);
|
this->current_time = SPA_TIMESPEC_TO_NSEC(&now);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue