Skip to content
Snippets Groups Projects
Commit e2e58668 authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

#29579: video: fix dual sink start

parent 1c21b1cd
No related branches found
No related tags found
No related merge requests found
......@@ -235,11 +235,13 @@ void VideoReceiveThread::exitConference()
if (!isRunning())
return;
EXIT_IF_FAIL(sink_.start(), "RX: sink startup failed");
if (attach(&sink_)) {
Manager::instance().getVideoControls()->startedDecoding(id_+"RX", sink_.openedName(), dstWidth_, dstHeight_);
DEBUG("RX: shm sink <%s> started: size = %dx%d",
sink_.openedName().c_str(), dstWidth_, dstHeight_);
if (sink_.openedName().empty()) {
EXIT_IF_FAIL(sink_.start(), "RX: sink startup failed");
if (attach(&sink_)) {
Manager::instance().getVideoControls()->startedDecoding(id_+"RX", sink_.openedName(), dstWidth_, dstHeight_);
DEBUG("RX: shm sink <%s> started: size = %dx%d",
sink_.openedName().c_str(), dstWidth_, dstHeight_);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment