mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-21 03:33:20 +08:00
gz small improvements (#24761)
* gz: print version number in init, remove gst plugin spam, rename function * fix 0 timestamp issue by waiting for clock callback before subscribing to other topics. Refactor to cleanup topic subscriptions * format * change gzerr to gzwarn
This commit is contained in:
@@ -175,10 +175,6 @@ void GstCameraSystem::findCameraTopic()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!_initialized) {
|
||||
gzdbg << "No camera topics found yet, will check again next update" << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
@@ -282,7 +278,7 @@ void GstCameraSystem::gstThreadFunc()
|
||||
NULL);
|
||||
|
||||
} else {
|
||||
gzerr << "NVIDIA H.264 encoder not available, falling back to software encoder" << std::endl;
|
||||
gzwarn << "NVIDIA H.264 encoder not available, falling back to software encoder" << std::endl;
|
||||
encoder = gst_element_factory_make("x264enc", nullptr);
|
||||
g_object_set(G_OBJECT(encoder),
|
||||
"bitrate", 4000,
|
||||
|
||||
Reference in New Issue
Block a user