diff options
Diffstat (limited to 'src/libsink')
| -rw-r--r-- | src/libsink/sink.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsink/sink.c b/src/libsink/sink.c index 134be31..55485b0 100644 --- a/src/libsink/sink.c +++ b/src/libsink/sink.c @@ -245,11 +245,10 @@ void add_audio_if_set_and_buffered(struct camu_sink_entry *entry) { u8 state = entry->audio.state; if (state == BUFFER_SET_OR_BUFFERED) { - // TODO: should_resume is not robust. + // TODO: should_resume is not robust. CAMU_SINK_NO_VIDEO doesn't work but that's + // the least of our problems. #ifndef CAMU_SINK_NO_VIDEO bool should_resume = ENTRY_VIDEO_EMPTY(entry) || entry->video.state == BUFFER_ADDED; -#else - bool should_resume = true; #endif if (should_resume && !camu_clock_calc_tick(&entry->clock)) { queue_cmd(entry->sink, (struct camu_sink_cmd){ @@ -670,6 +669,7 @@ static bool set_command_callback(void *userdata, struct aki_rpc_connection *conn #endif if (previous) { camu_clock_pause(&previous->clock); + // TODO: sink->previous that gets swapped in add_x_if_set_and_buffered? remove_entry_buffers(sink, previous); } out: |