#include <stdlib.h>
#include <string.h>
#include <pthread.h>
-#include <SDL/SDL.h>
+#include <SDL.h>
#include <sys/time.h>
extern pthread_mutex_t mlt_sdl_mutex;
{
consumer_sdl this = parent->child;
pthread_mutex_lock( &this->refresh_mutex );
- this->refresh_count = this->refresh_count <= 0 ? 1 : this->refresh_count ++;
+ this->refresh_count = this->refresh_count <= 0 ? 1 : this->refresh_count + 1;
pthread_cond_broadcast( &this->refresh_cond );
pthread_mutex_unlock( &this->refresh_mutex );
}
pthread_mutex_unlock( &this->refresh_mutex );
// Cleanup the main thread
+#ifndef WIN32
if ( this->thread )
+#endif
pthread_join( this->thread, NULL );
// Unlatch the audio callback
// Optimisation to reduce latency
if ( speed == 1.0 )
{
- if ( last_position != -1 && last_position + 1 != mlt_frame_get_position( frame ) )
- mlt_consumer_purge( consumer );
+ // TODO: disabled due to misbehavior on parallel-consumer
+// if ( last_position != -1 && last_position + 1 != mlt_frame_get_position( frame ) )
+// mlt_consumer_purge( consumer );
last_position = mlt_frame_get_position( frame );
}
else