summaryrefslogtreecommitdiff
path: root/src/video_out/video_out_sdl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_out/video_out_sdl.c')
-rw-r--r--src/video_out/video_out_sdl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_out/video_out_sdl.c b/src/video_out/video_out_sdl.c
index 7d8219da1..df67ff08d 100644
--- a/src/video_out/video_out_sdl.c
+++ b/src/video_out/video_out_sdl.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_sdl.c,v 1.29 2003/10/23 15:17:07 mroi Exp $
+ * $Id: video_out_sdl.c,v 1.30 2003/10/31 17:25:20 mroi Exp $
*
* video_out_sdl.c, Simple DirectMedia Layer
*
@@ -134,11 +134,12 @@ static vo_frame_t *sdl_alloc_frame (vo_driver_t *this_gen) {
sdl_frame_t *frame ;
frame = (sdl_frame_t *) malloc (sizeof (sdl_frame_t));
- memset (frame, 0, sizeof(sdl_frame_t));
if (frame==NULL) {
printf ("sdl_alloc_frame: out of memory\n");
+ return NULL;
}
+ memset (frame, 0, sizeof(sdl_frame_t));
pthread_mutex_init (&frame->vo_frame.mutex, NULL);