hozuki

Results 66 comments of hozuki

Hmmm while playing the demo video, memory leak is observed...

Can you test the latest commit aa5d9a583d448230b42451345cfcb65df1152c71?

> Found memory leak in AudioDecodingContext.cs in Dispose the _resampleContext was close but not freed. When new video loaded the closed resampleContext was not freed by ffmpeg. > protected override...

Looks like a rare racing condition. I'll look into this.

@BrianBergh I tested multiple times and this problem did occur, but it's rare. It seems sometimes `dstData[0]` (in `FFmpegHelper.TransmitAudioFrame`) sometimes gets `null` from `av_samples_alloc` or `swr_convert`. I don't know which...

Does this still happen using new looping mechanism?

> I am unable to start the test project WindowsDX, i get this exception: > System.EntryPointNotFoundException: 'Could not find the entrypoint for avformat_alloc_context.' > I have copied the ffmpeg dll's,...

The `ObjectDisposedException` is caused by accessing `_soundEffectInstance` in both main thread and decoding thread without "single access" guarantee. It should be fixed in 9baac981d52e76e7bf811a345b2847fb9c625677. (But pessimistic locking spreads everywhere, which...

@BrianBergh Thank you. I pushed the commit which fixes - this problem (duplicate key) - empty audio buffer queue when calling `Stop()`

Thank you for the feature requests. I'll explain my thoughts on the requested features. **a) Add support to display subtitles.** Hmmm this can be done. **b) Add support to load...