mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	source: add GError to get_formats
Add GError to get_formats to get more error information. Update the source possible formats when source-output is active
This commit is contained in:
		
							parent
							
								
									0378dcd4b7
								
							
						
					
					
						commit
						7cf87d902e
					
				
					 4 changed files with 109 additions and 68 deletions
				
			
		| 
						 | 
				
			
			@ -64,7 +64,9 @@ struct _PinosSource {
 | 
			
		|||
struct _PinosSourceClass {
 | 
			
		||||
  GObjectClass parent_class;
 | 
			
		||||
 | 
			
		||||
  GBytes *            (*get_formats) (PinosSource *source, GBytes *filter);
 | 
			
		||||
  GBytes *            (*get_formats)  (PinosSource  *source,
 | 
			
		||||
                                       GBytes       *filter,
 | 
			
		||||
                                       GError      **error);
 | 
			
		||||
 | 
			
		||||
  gboolean            (*set_state)  (PinosSource *source, PinosSourceState);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -83,7 +85,9 @@ GType               pinos_source_get_type                (void);
 | 
			
		|||
 | 
			
		||||
const gchar *       pinos_source_get_object_path         (PinosSource *source);
 | 
			
		||||
 | 
			
		||||
GBytes *            pinos_source_get_formats             (PinosSource *source, GBytes *filter);
 | 
			
		||||
GBytes *            pinos_source_get_formats             (PinosSource *source,
 | 
			
		||||
                                                          GBytes      *filter,
 | 
			
		||||
                                                          GError     **error);
 | 
			
		||||
 | 
			
		||||
gboolean            pinos_source_set_state               (PinosSource *source, PinosSourceState state);
 | 
			
		||||
void                pinos_source_update_state            (PinosSource *source, PinosSourceState state);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue