summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinhard Nißl <rnissl@gmx.de>2007-07-26 22:45:37 +0200
committerReinhard Nißl <rnissl@gmx.de>2007-07-26 22:45:37 +0200
commitf904331c23d4457f53263711c7d6cefb429b8696 (patch)
treea8f7fb28c9a92aadb8e18650637258f9f9824c23
parentcf3d7811754b01eca1aca617a6792417d4873a06 (diff)
downloadxine-lib-f904331c23d4457f53263711c7d6cefb429b8696.tar.gz
xine-lib-f904331c23d4457f53263711c7d6cefb429b8696.tar.bz2
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
-rw-r--r--src/video_out/video_out_xvmc.c1
-rw-r--r--src/video_out/video_out_xxmc.c2
2 files changed, 3 insertions, 0 deletions
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");