MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / loop_infinite

Method loop_infinite

OpenHD/ohd_video/src/gstaudiostream.cpp:63–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void GstAudioStream::loop_infinite() {
64 while (m_keep_looping) {
65 try {
66 stream_once();
67 } catch (std::exception& ex) {
68 std::cerr << "GStreamerStream::Error: " << ex.what() << std::endl;
69 } catch (...) {
70 std::cerr << "GStreamerStream::Unknown exception occurred" << std::endl;
71 }
72 if (m_keep_looping) {
73 std::this_thread::sleep_for(std::chrono::seconds(1));
74 }
75 }
76}
77
78// Quite dirty, but hey ...
79static std::string rpi_detect_alsasrc_device() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected