You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
QtPlayer: getting frame in audio/video threads safely
This commit is contained in:
@@ -215,5 +215,8 @@ void ReaderBase::DrawFrameOnScene(string path, long _graphics_scene_address) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
tr1::shared_ptr<Frame> ReaderBase::GetFrameSafe(int number)
|
||||
{
|
||||
const GenericScopedLock<CriticalSection> lock(getFrameCriticalSection);
|
||||
return GetFrame(number);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user