pthread_cond_init( &this->audio_cond, NULL);
pthread_mutex_init( &this->video_mutex, NULL );
pthread_cond_init( &this->video_cond, NULL);
pthread_cond_init( &this->audio_cond, NULL);
pthread_mutex_init( &this->video_mutex, NULL );
pthread_cond_init( &this->video_cond, NULL);
// Default scaler (for now we'll use nearest)
mlt_properties_set( this->properties, "rescale", "nearest" );
// Default scaler (for now we'll use nearest)
mlt_properties_set( this->properties, "rescale", "nearest" );
// Default buffer for low latency
mlt_properties_set_int( this->properties, "buffer", 1 );
// Default buffer for low latency
mlt_properties_set_int( this->properties, "buffer", 1 );
consumer_play_video( this, frame );
pthread_cond_wait( &this->refresh_cond, &this->refresh_mutex );
}
consumer_play_video( this, frame );
pthread_cond_wait( &this->refresh_cond, &this->refresh_mutex );
}