aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-02-22 09:45:06 +0100
committerdec05eba <dec05eba@protonmail.com>2023-02-22 09:45:06 +0100
commitfdcdfd2b35c50cd292da6da9b783fa002df3c13e (patch)
tree328665ac154a0b4ab040b675451c8633330cf1e8 /src
parente9b4f66e372ed35e405db878f5b13321ed6c7e57 (diff)
Fix broken video because of broken audio, most noticably in replay
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e444f18..b55b161 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1362,7 +1362,16 @@ int main(int argc, char **argv) {
audio_devices.push_back(std::move(audio_device));
}
- audio_tracks.push_back({ audio_codec_context, audio_frame, audio_stream, std::move(audio_devices), graph, sink, audio_stream_index });
+ AudioTrack audio_track;
+ audio_track.codec_context = audio_codec_context;
+ audio_track.frame = audio_frame;
+ audio_track.stream = audio_stream;
+ audio_track.audio_devices = std::move(audio_devices);
+ audio_track.graph = graph;
+ audio_track.sink = sink;
+ audio_track.pts = 0;
+ audio_track.stream_index = audio_stream_index;
+ audio_tracks.push_back(std::move(audio_track));
++audio_stream_index;
}