# HG changeset patch
# User Darren Salt <[EMAIL PROTECTED]>
# Date 1172070038 0
# Node ID 7386caafa735247909a2852a13acf3194580a340
# Parent 2ee7c1705fafb71443203bcd6680f2d39f622ed7
Fall back on info.product if storage.model isn't available from HAL.
diff -r 7386caafa735247909a2852a13acf3194580a340 -r
2ee7c1705fafb71443203bcd6680f2d39f622ed7 src/preferences.c
--- a/src/preferences.c Wed Feb 21 15:00:38 2007 +0000
+++ b/src/preferences.c Wed Feb 21 14:22:17 2007 +0000
@@ -370,6 +370,7 @@ get_hal_device_info (const char *dev)
}
return get_hal_property (buf, "block.device", "storage.model")
+ ? : get_hal_property (buf, "block.device", "info.product")
? : get_hal_property (buf, "linux.device_file", "info.product")
/* FIXME - BSD etc. */
;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xine-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-cvslog