X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mixer.cpp;h=dc178db3266f0ee3e97f657930c1b0d0510bfe25;hb=33929966f03efc11d23d4ec5fdf492ff09c2ab9e;hp=f502eb0e4590c86092588841bd04298e1f4f4600;hpb=a83f4d04da6f8c7ea0203c88d6e39b64b3cb5b22;p=nageru diff --git a/mixer.cpp b/mixer.cpp index f502eb0..dc178db 100644 --- a/mixer.cpp +++ b/mixer.cpp @@ -1390,7 +1390,7 @@ void Mixer::render_one_frame(int64_t duration) live_frame.ready_fence = fence; live_frame.input_frames = {}; live_frame.temp_textures = { y_display_tex, cbcr_display_tex }; - output_channel[OUTPUT_LIVE].output_frame(live_frame); + output_channel[OUTPUT_LIVE].output_frame(move(live_frame)); // Set up preview and any additional channels. for (int i = 1; i < theme->get_num_channels() + 2; ++i) { @@ -1401,7 +1401,7 @@ void Mixer::render_one_frame(int64_t duration) display_frame.ready_fence = fence; display_frame.input_frames = move(chain.input_frames); display_frame.temp_textures = {}; - output_channel[i].output_frame(display_frame); + output_channel[i].output_frame(move(display_frame)); } } @@ -1521,7 +1521,7 @@ Mixer::OutputChannel::~OutputChannel() } } -void Mixer::OutputChannel::output_frame(DisplayFrame frame) +void Mixer::OutputChannel::output_frame(DisplayFrame &&frame) { // Store this frame for display. Remove the ready frame if any // (it was seemingly never used).