[MPlayer-cvslog] r37777 - trunk/libvo/mga_template.c
reimar
subversion at mplayerhq.hu
Sat Feb 20 14:30:50 CET 2016
Author: reimar
Date: Sat Feb 20 14:30:50 2016
New Revision: 37777
Log:
mga_template: Check for ioctl failure.
Modified:
trunk/libvo/mga_template.c
Modified: trunk/libvo/mga_template.c
==============================================================================
--- trunk/libvo/mga_template.c Sat Feb 20 14:28:58 2016 (r37776)
+++ trunk/libvo/mga_template.c Sat Feb 20 14:30:50 2016 (r37777)
@@ -479,8 +479,7 @@ static int preinit(const char *vo_subdev
// check whether the mga_vid driver has the same
// version as we expect
- ioctl(f,MGA_VID_GET_VERSION,&ver);
- if(MGA_VID_VERSION != ver)
+ if(ioctl(f,MGA_VID_GET_VERSION,&ver) == -1 || MGA_VID_VERSION != ver)
{
mp_msg(MSGT_VO, MSGL_ERR, MSGTR_LIBVO_MGA_mgavidVersionMismatch, ver, MGA_VID_VERSION);
return -1;
More information about the MPlayer-cvslog
mailing list