diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-02-17 15:53:28 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-02-17 15:53:28 +0000 |
commit | 5106a372ebd84fda2e004541efebd7c366201efd (patch) | |
tree | aa0a7f5e31cfe7d011fdd6219d406e3756283ca1 /src/video_out/video_out_xshm.c | |
parent | 30bdd48615d44dc1cb1bce2766f6f9d5d61fda14 (diff) | |
download | xine-lib-5106a372ebd84fda2e004541efebd7c366201efd.tar.gz xine-lib-5106a372ebd84fda2e004541efebd7c366201efd.tar.bz2 |
more bugfixes, I can now see video using xshm :-)
CVS patchset: 1502
CVS date: 2002/02/17 15:53:28
Diffstat (limited to 'src/video_out/video_out_xshm.c')
-rw-r--r-- | src/video_out/video_out_xshm.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/video_out/video_out_xshm.c b/src/video_out/video_out_xshm.c index 71d0ae223..7a3469ff8 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.58 2002/02/17 00:06:58 guenter Exp $ + * $Id: video_out_xshm.c,v 1.59 2002/02/17 15:53:28 guenter Exp $ * * video_out_xshm.c, X11 shared memory extension interface for xine * @@ -59,7 +59,9 @@ #include "yuv2rgb.h" #include "xineutils.h" +/* #define LOG +*/ extern int XShmGetEventBase(Display *); @@ -365,6 +367,10 @@ static void xshm_frame_copy (vo_frame_t *vo_img, uint8_t **src) { xshm_frame_t *frame = (xshm_frame_t *) vo_img ; /*xshm_driver_t *this = (xshm_driver_t *) vo_img->driver; */ +#ifdef LOG + printf ("video_out_xshm: copy... (format %d)\n", frame->format); +#endif + if (frame->format == IMGFMT_YV12) { frame->yuv2rgb->yuv2rgb_fun (frame->yuv2rgb, frame->rgb_dst, src[0], src[1], src[2]); @@ -376,6 +382,9 @@ static void xshm_frame_copy (vo_frame_t *vo_img, uint8_t **src) { } frame->rgb_dst += frame->stripe_inc; +#ifdef LOG + printf ("video_out_xshm: copy...done\n"); +#endif } static void xshm_frame_field (vo_frame_t *vo_img, int which_field) { @@ -571,6 +580,7 @@ static void xshm_update_frame_format (vo_driver_t *this_gen, || (height != frame->height) || (ratio_code != frame->ratio_code) || (flags != frame->flags) + || (format != frame->format) || (this->user_ratio != frame->user_ratio)) { do_adapt = 1; @@ -583,6 +593,7 @@ static void xshm_update_frame_format (vo_driver_t *this_gen, frame->height = height; frame->ratio_code = ratio_code; frame->flags = flags; + frame->format = format; frame->user_ratio = this->user_ratio; xshm_compute_ideal_size (this, frame); |