context: remove redundant variable

This commit is contained in:
Wim Taymans 2024-04-18 16:00:25 +02:00
parent e1e0a886d5
commit 696cd8977a
2 changed files with 1 additions and 3 deletions

View file

@ -303,7 +303,6 @@ struct pw_context *pw_context_new(struct pw_loop *main_loop,
}
this->data_loop = pw_data_loop_get_loop(impl->data_loop_impl);
this->data_system = this->data_loop->system;
this->main_loop = main_loop;
this->work_queue = pw_work_queue_new(this->main_loop);
@ -317,7 +316,7 @@ struct pw_context *pw_context_new(struct pw_loop *main_loop,
this->support[n_support++] = SPA_SUPPORT_INIT(SPA_TYPE_INTERFACE_System, this->main_loop->system);
this->support[n_support++] = SPA_SUPPORT_INIT(SPA_TYPE_INTERFACE_Loop, this->main_loop->loop);
this->support[n_support++] = SPA_SUPPORT_INIT(SPA_TYPE_INTERFACE_LoopUtils, this->main_loop->utils);
this->support[n_support++] = SPA_SUPPORT_INIT(SPA_TYPE_INTERFACE_DataSystem, this->data_system);
this->support[n_support++] = SPA_SUPPORT_INIT(SPA_TYPE_INTERFACE_DataSystem, this->data_loop->system);
this->support[n_support++] = SPA_SUPPORT_INIT(SPA_TYPE_INTERFACE_DataLoop, this->data_loop->loop);
this->support[n_support++] = SPA_SUPPORT_INIT(SPA_TYPE_INTERFACE_PluginLoader, &impl->plugin_loader);

View file

@ -420,7 +420,6 @@ struct pw_context {
struct spa_thread_utils *thread_utils;
struct pw_loop *main_loop; /**< main loop for control */
struct pw_loop *data_loop; /**< data loop for data passing */
struct spa_system *data_system; /**< data system for data passing */
struct pw_work_queue *work_queue; /**< work queue */
struct spa_support support[16]; /**< support for spa plugins */