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)
|
static void sco_on_flush_timeout(struct spa_source *source)
|
||||||
{
|
{
|
||||||
struct impl *this = source->data;
|
struct impl *this = source->data;
|
||||||
uint64_t exp;
|
uint64_t exp = 0;
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
spa_log_trace(this->log, "%p: flush on timeout", this);
|
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);
|
fprintf(stderr, "Error: \"%s\"\n", error);
|
||||||
free(error);
|
free(error);
|
||||||
}
|
}
|
||||||
data.current->prompt_pending = pw_core_sync(data.current->core, 0, 0);
|
if (data.current != NULL)
|
||||||
while (!data.quit && data.current) {
|
data.current->prompt_pending = pw_core_sync(data.current->core, 0, 0);
|
||||||
|
|
||||||
|
while (!data.quit && data.current != NULL) {
|
||||||
pw_main_loop_run(data.loop);
|
pw_main_loop_run(data.loop);
|
||||||
if (!monitor)
|
if (!monitor)
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue