mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-19 06:46:26 -04:00
pipewire: module-roc-{sink,source}: remove logging related unused code
!2699 has been merged a bit prematurely and it contained things that are not used. So remove the unused member variables, functions, fix module usage strings, and move some functions from headers.
This commit is contained in:
parent
d4329600d1
commit
d8b06f94ee
4 changed files with 43 additions and 88 deletions
|
|
@ -120,8 +120,6 @@ struct module_roc_sink_data {
|
|||
|
||||
roc_endpoint *remote_control_addr;
|
||||
int remote_control_port;
|
||||
|
||||
roc_log_level loglevel;
|
||||
};
|
||||
|
||||
static void stream_destroy(void *d)
|
||||
|
|
@ -391,8 +389,7 @@ static const struct spa_dict_item module_roc_sink_info[] = {
|
|||
"( remote.repair.port=<remote receiver port for repair packets> ) "
|
||||
"( remote.control.port=<remote receiver port for control packets> ) "
|
||||
"( audio.position=<channel map, default:"PW_ROC_STEREO_POSITIONS"> ) "
|
||||
"( sink.props= { key=val ... } ) "
|
||||
"( log.level=<empty>|DEFAULT|NONE|RROR|INFO|DEBUG|TRACE ) " },
|
||||
"( sink.props= { key=val ... } ) " },
|
||||
{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
|
||||
};
|
||||
|
||||
|
|
@ -513,14 +510,6 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
pw_log_error("can't connect: %m");
|
||||
goto out;
|
||||
}
|
||||
if ((str = pw_properties_get(props, "log.level")) != NULL) {
|
||||
const struct spa_log *log_conf = pw_log_get();
|
||||
const roc_log_level default_level = pw_roc_log_level_pw_2_roc(log_conf->level);
|
||||
if (pw_roc_parse_log_level(&data->loglevel, str, default_level)) {
|
||||
pw_log_error("Invalid log level %s, using default", str);
|
||||
data->loglevel = default_level;
|
||||
}
|
||||
}
|
||||
|
||||
pw_proxy_add_listener((struct pw_proxy*)data->core,
|
||||
&data->core_proxy_listener,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue