You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Fixed a crash when stopping the QtPlayer class (the cache thread was not being correctly ended, and the audio timeslice thread was not being ended). Also fixed a crash when closing the openshot-player executable.
This commit is contained in:
@@ -77,7 +77,7 @@ namespace openshot
|
||||
// Start the thread
|
||||
void VideoCacheThread::run()
|
||||
{
|
||||
while (!threadShouldExit()) {
|
||||
while (!threadShouldExit() && is_playing) {
|
||||
|
||||
// Calculate sleep time for frame rate
|
||||
double frame_time = (1000.0 / reader->info.fps.ToDouble());
|
||||
|
||||
Reference in New Issue
Block a user