mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	gst: return NULL for unknown format
This commit is contained in:
		
							parent
							
								
									031a8ea799
								
							
						
					
					
						commit
						a596cdbf2e
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -858,6 +858,8 @@ gst_caps_from_format (const struct spa_pod *format)
 | 
				
			||||||
          "stream-format", G_TYPE_STRING, "byte-stream",
 | 
					          "stream-format", G_TYPE_STRING, "byte-stream",
 | 
				
			||||||
          "alignment", G_TYPE_STRING, "au",
 | 
					          "alignment", G_TYPE_STRING, "au",
 | 
				
			||||||
          NULL);
 | 
					          NULL);
 | 
				
			||||||
 | 
					    } else {
 | 
				
			||||||
 | 
						    return NULL;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    if ((prop = spa_pod_object_find_prop (obj, prop, SPA_FORMAT_VIDEO_size))) {
 | 
					    if ((prop = spa_pod_object_find_prop (obj, prop, SPA_FORMAT_VIDEO_size))) {
 | 
				
			||||||
      handle_rect_prop (prop, "width", "height", res);
 | 
					      handle_rect_prop (prop, "width", "height", res);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue