mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	Revert "pulse-server: use partial data as missing/played for"
This reverts commit 08b18b9da4.
This was likely caused by a bug in mpv
Fixes #1956
			
			
This commit is contained in:
		
							parent
							
								
									8416d66ab3
								
							
						
					
					
						commit
						2f742bb56c
					
				
					 1 changed files with 2 additions and 5 deletions
				
			
		| 
						 | 
					@ -1258,6 +1258,8 @@ static void stream_process(void *data)
 | 
				
			||||||
				pd.underrun = true;
 | 
									pd.underrun = true;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			if ((stream->attr.prebuf == 0 || do_flush) && !stream->corked) {
 | 
								if ((stream->attr.prebuf == 0 || do_flush) && !stream->corked) {
 | 
				
			||||||
 | 
									pd.missing = size;
 | 
				
			||||||
 | 
									pd.playing_for = size;
 | 
				
			||||||
				if (avail > 0) {
 | 
									if (avail > 0) {
 | 
				
			||||||
					spa_ringbuffer_read_data(&stream->ring,
 | 
										spa_ringbuffer_read_data(&stream->ring,
 | 
				
			||||||
						stream->buffer, stream->attr.maxlength,
 | 
											stream->buffer, stream->attr.maxlength,
 | 
				
			||||||
| 
						 | 
					@ -1265,11 +1267,6 @@ static void stream_process(void *data)
 | 
				
			||||||
						p, avail);
 | 
											p, avail);
 | 
				
			||||||
					index += avail;
 | 
										index += avail;
 | 
				
			||||||
					pd.read_inc = avail;
 | 
										pd.read_inc = avail;
 | 
				
			||||||
					pd.missing = avail;
 | 
					 | 
				
			||||||
					pd.playing_for = avail;
 | 
					 | 
				
			||||||
				} else {
 | 
					 | 
				
			||||||
					pd.missing = size;
 | 
					 | 
				
			||||||
					pd.playing_for = size;
 | 
					 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
				spa_ringbuffer_read_update(&stream->ring, index);
 | 
									spa_ringbuffer_read_update(&stream->ring, index);
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue