Rename buffer status to make it more symetrical

Only try to pull once in a timeout.
We can reuse the last returned state as our internal state in
audiomixer.
This commit is contained in:
Wim Taymans 2017-04-28 11:49:13 +02:00
parent 430b749d53
commit cc8a5da9c7
11 changed files with 58 additions and 65 deletions

View file

@ -310,9 +310,9 @@ videotestsrc_make_buffer (SpaVideoTestSrc *this)
set_timer (this, true);
io->buffer_id = b->outbuf->id;
io->status = SPA_RESULT_HAVE_OUTPUT;
io->status = SPA_RESULT_HAVE_BUFFER;
return SPA_RESULT_HAVE_OUTPUT;
return SPA_RESULT_HAVE_BUFFER;
}
static void
@ -323,7 +323,7 @@ videotestsrc_on_output (SpaSource *source)
res = videotestsrc_make_buffer (this);
if (res == SPA_RESULT_HAVE_OUTPUT)
if (res == SPA_RESULT_HAVE_BUFFER)
send_have_output (this);
}