Extract stream-specific structure in recorder

For now, it only contains the stream index, but more fields will be
added.
This commit is contained in:
Romain Vimont
2023-06-03 14:41:40 +02:00
parent 9d3c656414
commit 9ca554ca41
2 changed files with 26 additions and 19 deletions

View File

@@ -14,6 +14,10 @@
struct sc_recorder_queue SC_VECDEQUE(AVPacket *);
struct sc_recorder_stream {
int index;
};
struct sc_recorder {
struct sc_packet_sink video_packet_sink;
struct sc_packet_sink audio_packet_sink;
@@ -45,8 +49,8 @@ struct sc_recorder {
bool video_init;
bool audio_init;
int video_stream_index;
int audio_stream_index;
struct sc_recorder_stream video_stream;
struct sc_recorder_stream audio_stream;
const struct sc_recorder_callbacks *cbs;
void *cbs_userdata;