diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-05-28 20:13:46 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-05-28 20:13:46 +0000 |
commit | b7c53a58ddf9ab97d9b9d9a71e5256c17a1f7a02 (patch) | |
tree | 1b7c3c5cfd9e775c53bae2987ad3afd7a0f0377d /src | |
parent | 973a9fea408d520af3ba826161977b8cd9251d63 (diff) | |
download | xine-lib-b7c53a58ddf9ab97d9b9d9a71e5256c17a1f7a02.tar.gz xine-lib-b7c53a58ddf9ab97d9b9d9a71e5256c17a1f7a02.tar.bz2 |
Fixed crashed.
CVS patchset: 96
CVS date: 2001/05/28 20:13:46
Diffstat (limited to 'src')
-rw-r--r-- | src/video_out/video_out_xv.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c index aa6477b4a..c29c6c20b 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.26 2001/05/28 13:42:02 guenter Exp $ + * $Id: video_out_xv.c,v 1.27 2001/05/28 20:13:46 f1rmb Exp $ * * video_out_xv.c, X11 video extension interface for xine * @@ -485,12 +485,12 @@ static int xv_gui_data_exchange (vo_driver_t *this_gen, int data_type, void *dat /* FIXME : take care of completion events */ - frame = this->cur_frame; - - XvShmPutImage(this->display, this->xv_port, this->drawable, this->gc, frame->image, - 0, 0, frame->width, frame->height-5, - this->output_xoffset, this->output_yoffset, - this->output_width, this->output_height, False); + if((frame = this->cur_frame) != NULL) + XvShmPutImage(this->display, this->xv_port, + this->drawable, this->gc, frame->image, + 0, 0, frame->width, frame->height-5, + this->output_xoffset, this->output_yoffset, + this->output_width, this->output_height, False); break; case GUI_DATA_EX_DRAWABLE_CHANGED: |