Skip to content
Snippets Groups Projects
Commit 41eab75d authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Kateryna Kostiuk
Browse files

video: fix screen sharing on macOS

Because media encoder flush() involves encoding we should change
initialized flag after calling flush(), otherwise, it could lead to
new stream initializing.

jami-client-macos#299

Change-Id: I88d5648a6f252bd78776f505f891f09a4e5b12e1
parent 9c9d11e4
No related branches found
No related tags found
No related merge requests found
......@@ -1340,13 +1340,12 @@ MediaEncoder::getScaledSWFrame(const VideoFrame& input)
void
MediaEncoder::resetStreams(int width, int height)
{
// Only called by VideoSender!
initialized_ = false;
videoOpts_.width = width;
videoOpts_.height = height;
try {
flush();
initialized_ = false;
if (outputCtx_) {
for (auto encoderCtx : encoders_) {
if (encoderCtx) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment