Add start() function for recorder

For consistency with the other components, do not start the internal
thread from an init() function.
This commit is contained in:
Romain Vimont
2023-02-23 11:00:34 +01:00
parent 0af71d2bd8
commit ed14c56be4
3 changed files with 26 additions and 11 deletions

View File

@@ -54,6 +54,9 @@ sc_recorder_init(struct sc_recorder *recorder, const char *filename,
struct sc_size declared_frame_size,
const struct sc_recorder_callbacks *cbs, void *cbs_userdata);
bool
sc_recorder_start(struct sc_recorder *recorder);
void
sc_recorder_stop(struct sc_recorder *recorder);