From f904331c23d4457f53263711c7d6cefb429b8696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reinhard=20Ni=C3=9Fl?= Date: Thu, 26 Jul 2007 22:45:37 +0200 Subject: initialize pointer to native frame in acceleration data --HG-- extra : transplant_source : %EA%EBm%3Exb%A5%3C%07%BC%F0%D9%E1%00%F7%D1%E0%D5%94%ED --- src/video_out/video_out_xvmc.c | 1 + src/video_out/video_out_xxmc.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/video_out/video_out_xvmc.c b/src/video_out/video_out_xvmc.c index 7cd64f0e7..0b9e995fe 100644 --- a/src/video_out/video_out_xvmc.c +++ b/src/video_out/video_out_xvmc.c @@ -556,6 +556,7 @@ static vo_frame_t *xvmc_alloc_frame (vo_driver_t *this_gen) { return NULL; frame->vo_frame.accel_data = &frame->xvmc_data; + frame->xvmc_data.vo_frame = &frame->vo_frame; /* keep track of frames and how many frames alocated. */ this->frames[this->num_frame_buffers++] = frame; diff --git a/src/video_out/video_out_xxmc.c b/src/video_out/video_out_xxmc.c index 867281b02..4ef695462 100644 --- a/src/video_out/video_out_xxmc.c +++ b/src/video_out/video_out_xxmc.c @@ -454,6 +454,7 @@ static void xxmc_duplicate_frame_data(vo_frame_t *this_gen, return; } this->xxmc_data = *xxmc; + this->xxmc_data.xvmc.vo_frame = &this->vo_frame; this->width = original->width; this->height = original->height; this->format = original->format; @@ -568,6 +569,7 @@ static vo_frame_t *xxmc_alloc_frame (vo_driver_t *this_gen) { frame->vo_frame.driver = this_gen; frame->last_sw_format = 0; frame->vo_frame.accel_data = &frame->xxmc_data; + frame->xxmc_data.xvmc.vo_frame = &frame->vo_frame; frame->image = NULL; xprintf (this->xine, XINE_VERBOSITY_DEBUG, "Allocating frame\n"); -- cgit v1.2.3