Skip to content
Snippets Groups Projects
Commit 9f86cce2 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Adrien Béraud
Browse files

conference: stop sink for inputs managed by client

For daemon-managed inputs, the sink stops when the loop
stops. However, for client-managed inputs where the loop
isn't running, cleanup should be invoked upon input
destruction.

Change-Id: Ie4cede2b9e76d6b451139eb897ce94c6da5c2f02
parent 4e0e842a
Branches
Tags
No related merge requests found
...@@ -77,6 +77,8 @@ VideoInput::~VideoInput() ...@@ -77,6 +77,8 @@ VideoInput::~VideoInput()
{ {
isStopped_ = true; isStopped_ = true;
if (videoManagedByClient()) { if (videoManagedByClient()) {
// Stop the video sink for videos that are managed by the client.
cleanup();
emitSignal<libjami::VideoSignal::StopCapture>(decOpts_.input); emitSignal<libjami::VideoSignal::StopCapture>(decOpts_.input);
capturing_ = false; capturing_ = false;
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment