mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	Use 'await using Stream' instead of 'using Stream'
This commit is contained in:
		
							parent
							
								
									8178b19470
								
							
						
					
					
						commit
						fcbae95d19
					
				@ -217,7 +217,7 @@ namespace Jellyfin.Api.Controllers
 | 
			
		||||
 | 
			
		||||
            if (string.Equals(format, "vtt", StringComparison.OrdinalIgnoreCase) && addVttTimeMap)
 | 
			
		||||
            {
 | 
			
		||||
                using var stream = await EncodeSubtitles(id, mediaSourceId, index, format, startPositionTicks, endPositionTicks, copyTimestamps).ConfigureAwait(false);
 | 
			
		||||
                await using Stream stream = await EncodeSubtitles(id, mediaSourceId, index, format, startPositionTicks, endPositionTicks, copyTimestamps).ConfigureAwait(false);
 | 
			
		||||
                using var reader = new StreamReader(stream);
 | 
			
		||||
 | 
			
		||||
                var text = await reader.ReadToEndAsync().ConfigureAwait(false);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user