mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	Small cleanups
This commit is contained in:
		
							parent
							
								
									e7327d1316
								
							
						
					
					
						commit
						783bbe6c64
					
				
					 2 changed files with 5 additions and 6 deletions
				
			
		| 
						 | 
					@ -550,7 +550,7 @@ struct spa_node {
 | 
				
			||||||
	 *  - status is set to SPA_RESULT_OK when no new buffer is needed
 | 
						 *  - status is set to SPA_RESULT_OK when no new buffer is needed
 | 
				
			||||||
	 *
 | 
						 *
 | 
				
			||||||
	 *  - status is set to SPA_RESULT_NEED_BUFFER when a new buffer is needed
 | 
						 *  - status is set to SPA_RESULT_NEED_BUFFER when a new buffer is needed
 | 
				
			||||||
	 *    on the pad.
 | 
						 *    on the port.
 | 
				
			||||||
	 *
 | 
						 *
 | 
				
			||||||
	 *  - status is set to an error code when the buffer_id was invalid or any
 | 
						 *  - status is set to an error code when the buffer_id was invalid or any
 | 
				
			||||||
	 *    processing error happened on the port.
 | 
						 *    processing error happened on the port.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -87,21 +87,20 @@ static void do_static_struct(struct spa_type_map *map)
 | 
				
			||||||
		struct spa_format fmt;
 | 
							struct spa_format fmt;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		struct {
 | 
							struct {
 | 
				
			||||||
			struct spa_pod_prop prop_format;	SPA_ALIGNED(8)
 | 
								struct spa_pod_prop prop_format		SPA_ALIGNED(8);
 | 
				
			||||||
			struct {
 | 
								struct {
 | 
				
			||||||
				uint32_t def_format;
 | 
									uint32_t def_format;
 | 
				
			||||||
				uint32_t enum_format[2];
 | 
									uint32_t enum_format[2];
 | 
				
			||||||
			} format_vals;
 | 
								} format_vals;
 | 
				
			||||||
			uint32_t pad;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
			struct spa_pod_prop prop_size;		SPA_ALIGNED(8)
 | 
								struct spa_pod_prop prop_size		SPA_ALIGNED(8);
 | 
				
			||||||
			struct {
 | 
								struct {
 | 
				
			||||||
				struct spa_rectangle def_size;
 | 
									struct spa_rectangle def_size;
 | 
				
			||||||
				struct spa_rectangle min_size;
 | 
									struct spa_rectangle min_size;
 | 
				
			||||||
				struct spa_rectangle max_size;
 | 
									struct spa_rectangle max_size;
 | 
				
			||||||
			} size_vals;
 | 
								} size_vals;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			struct spa_pod_prop prop_framerate;	SPA_ALIGNED(8)
 | 
								struct spa_pod_prop prop_framerate	SPA_ALIGNED(8);
 | 
				
			||||||
			struct {
 | 
								struct {
 | 
				
			||||||
				struct spa_fraction def_framerate;
 | 
									struct spa_fraction def_framerate;
 | 
				
			||||||
				struct spa_fraction min_framerate;
 | 
									struct spa_fraction min_framerate;
 | 
				
			||||||
| 
						 | 
					@ -120,7 +119,7 @@ static void do_static_struct(struct spa_type_map *map)
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				type.video_format.I420,
 | 
									type.video_format.I420,
 | 
				
			||||||
				{ type.video_format.I420, type.video_format.YUY2 }
 | 
									{ type.video_format.I420, type.video_format.YUY2 }
 | 
				
			||||||
			}, 0,
 | 
								},
 | 
				
			||||||
			SPA_POD_PROP_INIT(sizeof(test_format.props.size_vals) +
 | 
								SPA_POD_PROP_INIT(sizeof(test_format.props.size_vals) +
 | 
				
			||||||
						sizeof(struct spa_pod_prop_body),
 | 
											sizeof(struct spa_pod_prop_body),
 | 
				
			||||||
					  type.format_video.size,
 | 
										  type.format_video.size,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue