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