mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	move initialization order of validity bools around a bit
This commit is contained in:
		
							parent
							
								
									36d6c712d8
								
							
						
					
					
						commit
						7d3d3fc15d
					
				
					 1 changed files with 5 additions and 7 deletions
				
			
		| 
						 | 
					@ -1292,13 +1292,9 @@ static void stream_get_timing_info_callback(pa_pdispatch *pd, uint32_t command,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    i = &o->stream->timing_info;
 | 
					    i = &o->stream->timing_info;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*     pa_log("pre corrupt w:%u r:%u\n", !o->stream->timing_info_valid || i->write_index_corrupt,!o->stream->timing_info_valid || i->read_index_corrupt); */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    o->stream->timing_info_valid = FALSE;
 | 
					    o->stream->timing_info_valid = FALSE;
 | 
				
			||||||
    i->write_index_corrupt = FALSE;
 | 
					    i->write_index_corrupt = TRUE;
 | 
				
			||||||
    i->read_index_corrupt = FALSE;
 | 
					    i->read_index_corrupt = TRUE;
 | 
				
			||||||
 | 
					 | 
				
			||||||
/*     pa_log("timing update %u\n", tag); */
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (command != PA_COMMAND_REPLY) {
 | 
					    if (command != PA_COMMAND_REPLY) {
 | 
				
			||||||
        if (pa_context_handle_error(o->context, command, t, FALSE) < 0)
 | 
					        if (pa_context_handle_error(o->context, command, t, FALSE) < 0)
 | 
				
			||||||
| 
						 | 
					@ -1332,8 +1328,10 @@ static void stream_get_timing_info_callback(pa_pdispatch *pd, uint32_t command,
 | 
				
			||||||
            pa_context_fail(o->context, PA_ERR_PROTOCOL);
 | 
					            pa_context_fail(o->context, PA_ERR_PROTOCOL);
 | 
				
			||||||
            goto finish;
 | 
					            goto finish;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					 | 
				
			||||||
        o->stream->timing_info_valid = TRUE;
 | 
					        o->stream->timing_info_valid = TRUE;
 | 
				
			||||||
 | 
					        i->write_index_corrupt = FALSE;
 | 
				
			||||||
 | 
					        i->read_index_corrupt = FALSE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        i->playing = (int) playing;
 | 
					        i->playing = (int) playing;
 | 
				
			||||||
        i->since_underrun = playing ? playing_for : underrun_for;
 | 
					        i->since_underrun = playing ? playing_for : underrun_for;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue