Order MediaStream query by StreamIndex (#13506)

Our stream index calculation logic implemented in #7529, assumes an in-order array. However, our current query may return out-of-order items, leading the server to pass an incorrect index to ffmpeg, causing the transcoding to crash.
pull/13517/head
gnattu 2 months ago committed by GitHub
parent ead7de18df
commit 341bb02422
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -88,7 +88,7 @@ public class MediaStreamRepository : IMediaStreamRepository
query = query.Where(e => e.StreamType == typeValue);
}
return query;
return query.OrderBy(e => e.StreamIndex);
}
private MediaStream Map(MediaStreamInfo entity)

Loading…
Cancel
Save