Rename video-specific variables in recorder

This paves the way to add audio-specific variables.
This commit is contained in:
Romain Vimont
2023-02-15 10:06:10 +01:00
parent f3da281ce8
commit c54a087e44
3 changed files with 35 additions and 33 deletions

View File

@@ -20,7 +20,7 @@ struct sc_record_packet {
struct sc_recorder_queue SC_QUEUE(struct sc_record_packet);
struct sc_recorder {
struct sc_packet_sink packet_sink; // packet sink trait
struct sc_packet_sink video_packet_sink; // packet sink trait
char *filename;
enum sc_record_format format;
@@ -32,11 +32,11 @@ struct sc_recorder {
sc_cond queue_cond;
// set on sc_recorder_stop(), packet_sink close or recording failure
bool stopped;
struct sc_recorder_queue queue;
struct sc_recorder_queue video_queue;
// wake up the recorder thread once the codec in known
// wake up the recorder thread once the video codec is known
sc_cond stream_cond;
const AVCodec *codec;
const AVCodec *video_codec;
const struct sc_recorder_callbacks *cbs;
void *cbs_userdata;