Commit cd4b4991 authored by Matej Frančeškin's avatar Matej Frančeškin

Restart video when stream ends to recover from loss of communication.

parent 4410bcaf
......@@ -535,7 +535,8 @@ VideoReceiver::_shutdownPipeline() {
void
VideoReceiver::_handleError() {
qCDebug(VideoReceiverLog) << "Gstreamer error!";
_shutdownPipeline();
stop();
start();
}
#endif
......@@ -550,7 +551,8 @@ VideoReceiver::_handleEOS() {
_shutdownRecordingBranch();
} else {
qWarning() << "VideoReceiver: Unexpected EOS!";
_shutdownPipeline();
stop();
start();
}
}
#endif
......
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