summaryrefslogtreecommitdiff
path: root/src/video_out/video_out_xshm.c
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2002-02-17 00:06:58 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2002-02-17 00:06:58 +0000
commit30bdd48615d44dc1cb1bce2766f6f9d5d61fda14 (patch)
treebcd8d4b17abf132eec36a85567b21732aa17530e /src/video_out/video_out_xshm.c
parent0af75ff223f83bac429856099c67819b2b877c70 (diff)
downloadxine-lib-30bdd48615d44dc1cb1bce2766f6f9d5d61fda14.tar.gz
xine-lib-30bdd48615d44dc1cb1bce2766f6f9d5d61fda14.tar.bz2
each frame has an id for debugging purposes now; xshm driver can at least display the logo without crashing now :-)
CVS patchset: 1501 CVS date: 2002/02/17 00:06:58
Diffstat (limited to 'src/video_out/video_out_xshm.c')
-rw-r--r--src/video_out/video_out_xshm.c37
1 files changed, 20 insertions, 17 deletions
diff --git a/src/video_out/video_out_xshm.c b/src/video_out/video_out_xshm.c
index 2b4e591a6..71d0ae223 100644
--- a/src/video_out/video_out_xshm.c
+++ b/src/video_out/video_out_xshm.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: video_out_xshm.c,v 1.57 2002/02/16 22:43:24 guenter Exp $
+ * $Id: video_out_xshm.c,v 1.58 2002/02/17 00:06:58 guenter Exp $
*
* video_out_xshm.c, X11 shared memory extension interface for xine
*
@@ -661,22 +661,6 @@ static void xshm_update_frame_format (vo_driver_t *this_gen,
frame->stripe_height = 16 * frame->output_height / frame->height;
- frame->rgb_dst = (uint8_t *)frame->image->data;
- switch (flags) {
- case VO_TOP_FIELD:
- frame->rgb_dst = (uint8_t *)frame->image->data;
- frame->stripe_inc = 2 * frame->stripe_height * frame->image->bytes_per_line;
- break;
- case VO_BOTTOM_FIELD:
- frame->rgb_dst = (uint8_t *)frame->image->data + frame->image->bytes_per_line ;
- frame->stripe_inc = 2 * frame->stripe_height * frame->image->bytes_per_line;
- break;
- case VO_BOTH_FIELDS:
- frame->rgb_dst = (uint8_t *)frame->image->data;
- frame->stripe_inc = frame->stripe_height * frame->image->bytes_per_line;
- break;
- }
-
/*
* set up colorspace converter
*/
@@ -707,6 +691,25 @@ static void xshm_update_frame_format (vo_driver_t *this_gen,
break;
}
}
+
+ /*
+ * reset dest pointers
+ */
+
+ switch (flags) {
+ case VO_TOP_FIELD:
+ frame->rgb_dst = (uint8_t *)frame->image->data;
+ frame->stripe_inc = 2 * frame->stripe_height * frame->image->bytes_per_line;
+ break;
+ case VO_BOTTOM_FIELD:
+ frame->rgb_dst = (uint8_t *)frame->image->data + frame->image->bytes_per_line ;
+ frame->stripe_inc = 2 * frame->stripe_height * frame->image->bytes_per_line;
+ break;
+ case VO_BOTH_FIELDS:
+ frame->rgb_dst = (uint8_t *)frame->image->data;
+ frame->stripe_inc = frame->stripe_height * frame->image->bytes_per_line;
+ break;
+ }
}
static void xshm_overlay_clut_yuv2rgb(xshm_driver_t *this, vo_overlay_t *overlay,