summaryrefslogtreecommitdiff
path: root/spa
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-08-06 13:49:33 +0200
committerWim Taymans <wtaymans@redhat.com>2020-08-06 13:49:33 +0200
commite71936f8708aa03d6e7a8f34256d5c1ffb7e3041 (patch)
tree84f5dec6011840fb09f3f5eb380a9aa521fa1c35 /spa
parent98b7dc7c0c57c7f7c0d11fd00e470dbdd0895527 (diff)
Improve naming
master -> driving priority_master -> priority_driver segment_master -> segment_owner
Diffstat (limited to 'spa')
-rw-r--r--spa/include/spa/node/io.h2
-rw-r--r--spa/plugins/audioconvert/audioadapter.c12
-rw-r--r--spa/plugins/videoconvert/videoadapter.c4
3 files changed, 9 insertions, 9 deletions
diff --git a/spa/include/spa/node/io.h b/spa/include/spa/node/io.h
index eebc62a9..bddd15a5 100644
--- a/spa/include/spa/node/io.h
+++ b/spa/include/spa/node/io.h
@@ -254,7 +254,7 @@ enum spa_io_position_state {
* The position information adds extra meaning to the raw clock times.
*
* It is set on all nodes and the clock id will contain the clock of the
- * master node in the graph.
+ * driving node in the graph.
*
* The position information contains 1 or more segments that convert the
* raw clock times to a stream time. They are sorted based on their
diff --git a/spa/plugins/audioconvert/audioadapter.c b/spa/plugins/audioconvert/audioadapter.c
index 4cffdc2a..6a777bdf 100644
--- a/spa/plugins/audioconvert/audioadapter.c
+++ b/spa/plugins/audioconvert/audioadapter.c
@@ -82,7 +82,7 @@ struct impl {
unsigned int add_listener:1;
unsigned int have_format:1;
unsigned int started:1;
- unsigned int master:1;
+ unsigned int driver:1;
};
/** \endcond */
@@ -655,7 +655,7 @@ static int follower_ready(void *data, int status)
spa_log_trace_fp(this->log, NAME " %p: ready %d", this, status);
- this->master = true;
+ this->driver = true;
if (this->direction == SPA_DIRECTION_OUTPUT)
status = spa_node_process(this->convert);
@@ -880,8 +880,8 @@ static int impl_node_process(void *object)
struct impl *this = object;
int status = 0;
- spa_log_trace_fp(this->log, "%p: process convert:%p master:%d",
- this, this->convert, this->master);
+ spa_log_trace_fp(this->log, "%p: process convert:%p driver:%d",
+ this, this->convert, this->driver);
if (this->direction == SPA_DIRECTION_INPUT) {
if (this->convert)
@@ -892,7 +892,7 @@ static int impl_node_process(void *object)
status = spa_node_process(this->follower);
if (this->direction == SPA_DIRECTION_OUTPUT &&
- !this->master && this->convert) {
+ !this->driver && this->convert) {
while (status > 0) {
status = spa_node_process(this->convert);
if (status & (SPA_STATUS_HAVE_DATA | SPA_STATUS_DRAINED))
@@ -906,7 +906,7 @@ static int impl_node_process(void *object)
}
spa_log_trace_fp(this->log, "%p: process status:%d", this, status);
- this->master = false;
+ this->driver = false;
return status;
}
diff --git a/spa/plugins/videoconvert/videoadapter.c b/spa/plugins/videoconvert/videoadapter.c
index 8555f4c3..f150d48c 100644
--- a/spa/plugins/videoconvert/videoadapter.c
+++ b/spa/plugins/videoconvert/videoadapter.c
@@ -78,7 +78,7 @@ struct impl {
unsigned int started:1;
unsigned int active:1;
unsigned int driver:1;
- unsigned int master:1;
+ unsigned int driving:1;
unsigned int monitor:1;
};
@@ -775,7 +775,7 @@ static int impl_node_process(void *object)
if (this->monitor)
status |= SPA_STATUS_HAVE_DATA;
- if (this->direction == SPA_DIRECTION_OUTPUT && !this->master) {
+ if (this->direction == SPA_DIRECTION_OUTPUT && !this->driving) {
if (this->use_converter)
status = spa_node_process(this->convert);
}