Report video buffer downstream errors

Make the video buffer stop if its consumer could not receive a frame.
This commit is contained in:
Romain Vimont
2023-03-01 18:45:22 +01:00
parent 18b60c9641
commit 34b778d423
5 changed files with 10 additions and 22 deletions

View File

@@ -141,7 +141,7 @@ run_v4l2_sink(void *data) {
return 0;
}
static void
static bool
sc_video_buffer_on_new_frame(struct sc_video_buffer *vb, bool previous_skipped,
void *userdata) {
(void) vb;
@@ -153,6 +153,8 @@ sc_video_buffer_on_new_frame(struct sc_video_buffer *vb, bool previous_skipped,
sc_cond_signal(&vs->cond);
sc_mutex_unlock(&vs->mutex);
}
return true;
}
static bool