summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2001-06-02 14:41:18 +0000
committerDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2001-06-02 14:41:18 +0000
commitf3e31d167d315532e9e1f5ed6dee4fd6981e83b9 (patch)
tree3a0ffc068586ece3df7c0919078d64e2f5cdc967
parent992d780e847def009631c48f570cfd41905f7408 (diff)
downloadxine-lib-f3e31d167d315532e9e1f5ed6dee4fd6981e83b9.tar.gz
xine-lib-f3e31d167d315532e9e1f5ed6dee4fd6981e83b9.tar.bz2
Fixed a crash if aspect ratio is changed when xine is stops.
CVS patchset: 113 CVS date: 2001/06/02 14:41:18
-rw-r--r--src/video_out/video_out_xv.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c
index 912735597..044d4f26d 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.29 2001/05/31 22:54:39 guenter Exp $
+ * $Id: video_out_xv.c,v 1.30 2001/06/02 14:41:18 f1rmb Exp $
*
* video_out_xv.c, X11 video extension interface for xine
*
@@ -495,17 +495,18 @@ static int xv_set_property (vo_driver_t *this_gen,
this->props[property].value);
break;
case VO_PROP_ASPECT_RATIO:
-
+
if (value>ASPECT_DVB)
value = ASPECT_AUTO;
-
+
this->props[property].value = value;
printf("video_out_xv: VO_PROP_ASPECT_RATIO(%d)\n",
this->props[property].value);
- xv_calc_format (this, this->delivered_width, this->delivered_height,
- this->delivered_ratio_code) ;
-
+ if(this->cur_frame) {
+ xv_calc_format (this, this->delivered_width, this->delivered_height,
+ this->delivered_ratio_code) ;
+ }
break;
}
}