mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
handle some uninitialized variables
This commit is contained in:
parent
167681104b
commit
98a214891d
2 changed files with 5 additions and 3 deletions
|
|
@ -552,7 +552,7 @@ stop:
|
|||
static void sco_on_flush_timeout(struct spa_source *source)
|
||||
{
|
||||
struct impl *this = source->data;
|
||||
uint64_t exp;
|
||||
uint64_t exp = 0;
|
||||
int res;
|
||||
|
||||
spa_log_trace(this->log, "%p: flush on timeout", this);
|
||||
|
|
|
|||
|
|
@ -2336,8 +2336,10 @@ int main(int argc, char *argv[])
|
|||
fprintf(stderr, "Error: \"%s\"\n", error);
|
||||
free(error);
|
||||
}
|
||||
data.current->prompt_pending = pw_core_sync(data.current->core, 0, 0);
|
||||
while (!data.quit && data.current) {
|
||||
if (data.current != NULL)
|
||||
data.current->prompt_pending = pw_core_sync(data.current->core, 0, 0);
|
||||
|
||||
while (!data.quit && data.current != NULL) {
|
||||
pw_main_loop_run(data.loop);
|
||||
if (!monitor)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue