src/video/x11/edid-parse.c
changeset 7072 1d9b4b7a8ce3
parent 6992 e7c2c85bcf69
child 8922 dfb6f8611ebe
equal deleted inserted replaced
7071:82f17e656125 7072:1d9b4b7a8ce3
   522 {
   522 {
   523     MonitorInfo *info = calloc (1, sizeof (MonitorInfo));
   523     MonitorInfo *info = calloc (1, sizeof (MonitorInfo));
   524 
   524 
   525     decode_check_sum (edid, info);
   525     decode_check_sum (edid, info);
   526     
   526     
   527     if (!decode_header (edid))
   527     if (!decode_header (edid) ||
       
   528         !decode_vendor_and_product_identification (edid, info) ||
       
   529         !decode_edid_version (edid, info) ||
       
   530         !decode_display_parameters (edid, info) ||
       
   531         !decode_color_characteristics (edid, info) ||
       
   532         !decode_established_timings (edid, info) ||
       
   533         !decode_standard_timings (edid, info) ||
       
   534         !decode_descriptors (edid, info)) {
       
   535         free(info);
   528 	return NULL;
   536 	return NULL;
   529 
   537     }
   530     if (!decode_vendor_and_product_identification (edid, info))
       
   531 	return NULL;
       
   532 
       
   533     if (!decode_edid_version (edid, info))
       
   534 	return NULL;
       
   535 
       
   536     if (!decode_display_parameters (edid, info))
       
   537 	return NULL;
       
   538 
       
   539     if (!decode_color_characteristics (edid, info))
       
   540 	return NULL;
       
   541 
       
   542     if (!decode_established_timings (edid, info))
       
   543 	return NULL;
       
   544 
       
   545     if (!decode_standard_timings (edid, info))
       
   546 	return NULL;
       
   547     
       
   548     if (!decode_descriptors (edid, info))
       
   549 	return NULL;
       
   550     
   538     
   551     return info;
   539     return info;
   552 }
   540 }
   553 
   541 
   554 static const char *
   542 static const char *