janus: webcam: check the device state

This commit is contained in:
Maxim Devaev
2026-07-17 19:40:39 +03:00
parent e1542dd617
commit 35fa72ba73
3 changed files with 16 additions and 2 deletions

View File

@@ -77,6 +77,7 @@ us_config_s *us_config_init(const char *config_dir_path) {
config->vplay_sink_name = _get_value(jcfg, "vplay", "sink");
config->vplay_sink_mode = _get_uint(jcfg, "vplay", "sink_mode", 0660, 8);
config->vplay_dev_path = _get_value(jcfg, "vplay", "device");
goto ok;
@@ -95,6 +96,7 @@ void us_config_destroy(us_config_s *config) {
US_DELETE(config->tc358743_dev_path, free);
US_DELETE(config->aplay_dev_name, free);
US_DELETE(config->vplay_sink_name, free);
US_DELETE(config->vplay_dev_path, free);
free(config);
}