summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-08-19 13:06:37 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-08-19 13:06:37 +0000
commitf04f3160a2c1c5f2f53b991aad99da9c302bd8b0 (patch)
tree4dd71d46516cad5721d0d06f494a698f1ab4e65b /src
parent272b5281cbd53d93358a2dfe7c687638155f5053 (diff)
downloadxine-lib-f04f3160a2c1c5f2f53b991aad99da9c302bd8b0.tar.gz
xine-lib-f04f3160a2c1c5f2f53b991aad99da9c302bd8b0.tar.bz2
Thibaut's fix for onefield_xv
CVS patchset: 2480 CVS date: 2002/08/19 13:06:37
Diffstat (limited to 'src')
-rw-r--r--src/video_out/video_out_xv.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c
index 0264cd18e..56c729217 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.127 2002/08/15 18:24:14 miguelfreitas Exp $
+ * $Id: video_out_xv.c,v 1.128 2002/08/19 13:06:37 miguelfreitas Exp $
*
* video_out_xv.c, X11 video extension interface for xine
*
@@ -902,6 +902,15 @@ static int xv_gui_data_exchange (vo_driver_t *this_gen,
rect->y = y1;
rect->w = x2-x1;
rect->h = y2-y1;
+
+ /* onefield_xv divide by 2 the number of lines */
+ if (this->deinterlace_enabled
+ && (this->deinterlace_method == DEINTERLACE_ONEFIELDXV)
+ && (this->cur_frame->format == IMGFMT_YV12)) {
+ rect->y = rect->y * 2;
+ rect->h = rect->h * 2;
+ }
+
}
break;