Commit e2e58668 authored by Guillaume Roguez's avatar Guillaume Roguez

#29579: video: fix dual sink start

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