mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	filter: handle context allocation failure
This commit is contained in:
		
							parent
							
								
									2a142edadb
								
							
						
					
					
						commit
						3e1eeb1c03
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -999,8 +999,8 @@ pw_filter_new_simple(struct pw_loop *loop,
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	context = pw_context_new(loop, NULL, 0);
 | 
						context = pw_context_new(loop, NULL, 0);
 | 
				
			||||||
 | 
						if (context == NULL)
 | 
				
			||||||
	pw_fill_connect_properties(context, props);
 | 
							return NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	impl = filter_new(context, name, props, props);
 | 
						impl = filter_new(context, name, props, props);
 | 
				
			||||||
	if (impl == NULL) {
 | 
						if (impl == NULL) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1120,8 +1120,8 @@ pw_stream_new_simple(struct pw_loop *loop,
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	context = pw_context_new(loop, NULL, 0);
 | 
						context = pw_context_new(loop, NULL, 0);
 | 
				
			||||||
 | 
						if (context == NULL)
 | 
				
			||||||
	pw_fill_connect_properties(context, props);
 | 
							return NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	impl = stream_new(context, name, props, NULL);
 | 
						impl = stream_new(context, name, props, NULL);
 | 
				
			||||||
	if (impl == NULL) {
 | 
						if (impl == NULL) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue