mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse: update for removal of DSP nodes
This commit is contained in:
		
							parent
							
								
									67c1dca897
								
							
						
					
					
						commit
						bfd805a19e
					
				
					 1 changed files with 4 additions and 14 deletions
				
			
		| 
						 | 
					@ -515,33 +515,23 @@ static int set_mask(pa_context *c, struct global *g)
 | 
				
			||||||
	case PW_TYPE_INTERFACE_Node:
 | 
						case PW_TYPE_INTERFACE_Node:
 | 
				
			||||||
		if (g->props == NULL)
 | 
							if (g->props == NULL)
 | 
				
			||||||
			return 0;
 | 
								return 0;
 | 
				
			||||||
		if ((str = pw_properties_get(g->props, PW_KEY_MEDIA_CLASS)) == NULL)
 | 
							if ((str = pw_properties_get(g->props, PW_KEY_MEDIA_CLASS)) == NULL) {
 | 
				
			||||||
 | 
								pw_log_debug("node %d without "PW_KEY_MEDIA_CLASS, g->id);
 | 
				
			||||||
			return 0;
 | 
								return 0;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							pw_log_debug("node %d "PW_KEY_MEDIA_CLASS" '%s'", g->id, str);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (strcmp(str, "Audio/Sink") == 0) {
 | 
							if (strcmp(str, "Audio/Sink") == 0) {
 | 
				
			||||||
			return 0;
 | 
					 | 
				
			||||||
			pw_log_debug("found sink %d", g->id);
 | 
								pw_log_debug("found sink %d", g->id);
 | 
				
			||||||
			g->mask = PA_SUBSCRIPTION_MASK_SINK;
 | 
					 | 
				
			||||||
			g->event = PA_SUBSCRIPTION_EVENT_SINK;
 | 
					 | 
				
			||||||
			g->node_info.monitor = SPA_ID_INVALID;
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
		else if (strcmp(str, "Audio/DSP/Playback") == 0) {
 | 
					 | 
				
			||||||
			pw_log_debug("found playback/monitor DSP %d", g->id);
 | 
					 | 
				
			||||||
			g->mask = PA_SUBSCRIPTION_MASK_SINK | PA_SUBSCRIPTION_MASK_SOURCE;
 | 
								g->mask = PA_SUBSCRIPTION_MASK_SINK | PA_SUBSCRIPTION_MASK_SOURCE;
 | 
				
			||||||
			g->event = PA_SUBSCRIPTION_EVENT_SINK;
 | 
								g->event = PA_SUBSCRIPTION_EVENT_SINK;
 | 
				
			||||||
			g->node_info.monitor = g->id | PA_IDX_FLAG_DSP;
 | 
								g->node_info.monitor = g->id | PA_IDX_FLAG_DSP;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else if (strcmp(str, "Audio/Source") == 0) {
 | 
							else if (strcmp(str, "Audio/Source") == 0) {
 | 
				
			||||||
			return 0;
 | 
					 | 
				
			||||||
			pw_log_debug("found source %d", g->id);
 | 
								pw_log_debug("found source %d", g->id);
 | 
				
			||||||
			g->mask = PA_SUBSCRIPTION_MASK_SOURCE;
 | 
								g->mask = PA_SUBSCRIPTION_MASK_SOURCE;
 | 
				
			||||||
			g->event = PA_SUBSCRIPTION_EVENT_SOURCE;
 | 
								g->event = PA_SUBSCRIPTION_EVENT_SOURCE;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		else if (strcmp(str, "Audio/DSP/Capture") == 0) {
 | 
					 | 
				
			||||||
			pw_log_debug("found capture DSP %d", g->id);
 | 
					 | 
				
			||||||
			g->mask = PA_SUBSCRIPTION_MASK_SOURCE;
 | 
					 | 
				
			||||||
			g->event = PA_SUBSCRIPTION_EVENT_SOURCE;
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
		else if (strcmp(str, "Stream/Output/Audio") == 0) {
 | 
							else if (strcmp(str, "Stream/Output/Audio") == 0) {
 | 
				
			||||||
			pw_log_debug("found sink input %d", g->id);
 | 
								pw_log_debug("found sink input %d", g->id);
 | 
				
			||||||
			g->mask = PA_SUBSCRIPTION_MASK_SINK_INPUT;
 | 
								g->mask = PA_SUBSCRIPTION_MASK_SINK_INPUT;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue