pipewire: remove work queue checks

Since now `pw_context_get_work_queue()` cannot
fail, the checks can be removed.
This commit is contained in:
Barnabás Pőcze 2022-02-17 03:14:36 +01:00
parent eae6517c84
commit 4d4c6f20df
16 changed files with 1 additions and 71 deletions

View file

@ -462,11 +462,6 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
data->module = module;
data->module_context = context;
data->work = pw_context_get_work_queue(context);
if (data->work == NULL) {
res = -errno;
pw_log_error( "can't get work queue: %m");
goto out;
}
if ((str = pw_properties_get(props, "source.name")) != NULL) {
pw_properties_set(playback_props, PW_KEY_NODE_NAME, str);