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:
Jonathan Thomas
2015-12-04 01:10:40 -06:00
parent 55684663da
commit 121cfd342d
7 changed files with 27 additions and 9 deletions

View File

@@ -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());