diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2002-09-13 19:57:13 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2002-09-13 19:57:13 +0000 |
commit | 676d2c786d4e13d13ce6e876d5277b982c20b06a (patch) | |
tree | 8a38c8448625f1e2483212f2f7d026f8bbac237a /src/video_out/video_out_xv.c | |
parent | b5a4b5b7c50ef17e948c21077e6b693b5581b244 (diff) | |
download | xine-lib-676d2c786d4e13d13ce6e876d5277b982c20b06a.tar.gz xine-lib-676d2c786d4e13d13ce6e876d5277b982c20b06a.tar.bz2 |
duplicating behaviour of XShm fixes the bug James discovered
(some values in vo_scale being 0)
CVS patchset: 2661
CVS date: 2002/09/13 19:57:13
Diffstat (limited to 'src/video_out/video_out_xv.c')
-rw-r--r-- | src/video_out/video_out_xv.c | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c index 62c564735..1037609e4 100644 --- a/src/video_out/video_out_xv.c +++ b/src/video_out/video_out_xv.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_xv.c,v 1.131 2002/09/08 16:20:11 mroi Exp $ + * $Id: video_out_xv.c,v 1.132 2002/09/13 19:57:13 mroi Exp $ * * video_out_xv.c, X11 video extension interface for xine * @@ -618,14 +618,25 @@ static int xv_redraw_needed (xine_vo_driver_t *this_gen) { xv_driver_t *this = (xv_driver_t *) this_gen; int ret = 0; - if( vo_scale_redraw_needed( &this->sc ) ) { + if( this->cur_frame ) { + + this->sc.delivered_height = this->cur_frame->height; + this->sc.delivered_width = this->cur_frame->width; + this->sc.delivered_ratio_code = this->cur_frame->ratio_code; + + xv_compute_ideal_size(this); + + if( vo_scale_redraw_needed( &this->sc ) ) { - xv_compute_output_size (this); + xv_compute_output_size (this); - xv_clean_output_area (this); + xv_clean_output_area (this); + ret = 1; + } + } + else ret = 1; - } return ret; } |