summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Auras <yak54@gmx.net>2010-10-08 12:57:38 +0200
committerAndreas Auras <yak54@gmx.net>2010-10-08 12:57:38 +0200
commit8d6f5a2c13ec1c964bc7eed9ac87906f0140e7a5 (patch)
tree0f275315fb4eeb5faac70c7c6c07b6543a772ea9
parent17d04618e3c7b2d68c4343048a0b469d2a1510da (diff)
downloadxine-lib-atmolight-8d6f5a2c13ec1c964bc7eed9ac87906f0140e7a5.tar.gz
xine-lib-atmolight-8d6f5a2c13ec1c964bc7eed9ac87906f0140e7a5.tar.bz2
Fixes for delay filter
-rw-r--r--xine_post_atmo.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/xine_post_atmo.c b/xine_post_atmo.c
index c82f814..5df977d 100644
--- a/xine_post_atmo.c
+++ b/xine_post_atmo.c
@@ -1081,23 +1081,23 @@ static void *atmo_output_loop (void *this_gen) {
}
pthread_mutex_unlock(&this->lock);
- /* Transfer filtered colors to output colors */
- if (this->delay_filter_queue)
- delay_filter(this);
- else
- memcpy(this->output_colors, this->filtered_colors, colors_size);
-
- /* Output colors */
gettimeofday(&tvnow, NULL);
timersub(&tvnow, &tvfirst, &tvdiff);
if ((tvdiff.tv_sec * 1000 + tvdiff.tv_usec / 1000) >= this->active_parm.start_delay) {
- apply_gamma_correction(this);
- apply_white_calibration(this);
-
- if (memcmp(this->output_colors, this->last_output_colors, colors_size)) {
- output_driver->output_colors(output_driver, this->output_colors, this->last_output_colors);
- memcpy(this->last_output_colors, this->output_colors, colors_size);
- }
+ /* Transfer filtered colors to output colors */
+ if (this->delay_filter_queue)
+ delay_filter(this);
+ else
+ memcpy(this->output_colors, this->filtered_colors, colors_size);
+
+ apply_gamma_correction(this);
+ apply_white_calibration(this);
+
+ /* Output colors */
+ if (memcmp(this->output_colors, this->last_output_colors, colors_size)) {
+ output_driver->output_colors(output_driver, this->output_colors, this->last_output_colors);
+ memcpy(this->last_output_colors, this->output_colors, colors_size);
+ }
}
/* Loop with output rate duration */