diff libmpcodecs/vd_libmpeg2.c @ 5124:3dcbf67c0de0

handle error from mpcodecs_config_vo()
author arpi
date Sat, 16 Mar 2002 01:10:31 +0000
parents 9c29ace24f4d
children 109377795585
line wrap: on
line diff
--- a/libmpcodecs/vd_libmpeg2.c	Fri Mar 15 23:53:58 2002 +0000
+++ b/libmpcodecs/vd_libmpeg2.c	Sat Mar 16 01:10:31 2002 +0000
@@ -38,8 +38,7 @@
     // send seq header to the decoder:  *** HACK ***
     mpeg2_decode_data(NULL,videobuffer,videobuffer+videobuf_len,0);
     mpeg2_allocate_image_buffers (picture);
-    mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YV12);
-    return 1;
+    return mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YV12);
 }
 
 // uninit driver