mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	format: make helper function to parse media type
This commit is contained in:
		
							parent
							
								
									5976beb149
								
							
						
					
					
						commit
						80de83f38a
					
				
					 24 changed files with 127 additions and 100 deletions
				
			
		| 
						 | 
				
			
			@ -799,8 +799,8 @@ gst_caps_from_format (const struct spa_pod *format)
 | 
			
		|||
  uint32_t media_type, media_subtype;
 | 
			
		||||
  struct spa_pod_prop *prop;
 | 
			
		||||
 | 
			
		||||
  spa_pod_object_parse(format, "I", &media_type,
 | 
			
		||||
			       "I", &media_subtype);
 | 
			
		||||
  if (spa_format_parse(format, &media_type, &media_subtype) < 0)
 | 
			
		||||
    return res;
 | 
			
		||||
 | 
			
		||||
  if (media_type == SPA_MEDIA_TYPE_video) {
 | 
			
		||||
    if (media_subtype == SPA_MEDIA_SUBTYPE_raw) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue