Rename video-specific variables in recorder
This paves the way to add audio-specific variables. PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user