Nevcairiel/LAVFilters — pull request #7 by Underground78 (2013-11-10 14:06:34+00:00)
Title: LAV Audio: Fix a deadlock when changing bitstreaming settings when paused

If one changes LAV Audio's bitstreaming settings when playblack is paused, LAV will freeze because it tries to lock on the `m_csReceive` critical section which is already locked in `Receive`.

With this small patch, the application of the settings is delayed to the next call to `Receive` which avoids the problem.

I can't really test that patch since I don't have the hardware for it but at least it seems to work for what I can test without having anything plugged on the S/PDIF output. I don't know LAV's code base very well so I hope that patch is acceptable.