[brasero/gnome-2-30] Minor fix for some drives when retrieving speeds through page 2A
- From: Philippe Rouquier <philippr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [brasero/gnome-2-30] Minor fix for some drives when retrieving speeds through page 2A
- Date: Sat, 19 Jun 2010 19:14:12 +0000 (UTC)
commit fcc83d3f2eb40ad31bffb8da25ba3c2fb598ed79
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Sat Jun 19 23:02:54 2010 +0200
Minor fix for some drives when retrieving speeds through page 2A
libbrasero-media/brasero-medium.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libbrasero-media/brasero-medium.c b/libbrasero-media/brasero-medium.c
index 1b569c0..80c41ef 100644
--- a/libbrasero-media/brasero-medium.c
+++ b/libbrasero-media/brasero-medium.c
@@ -1480,6 +1480,11 @@ brasero_medium_get_page_2A_write_speed_desc (BraseroMedium *self,
desc = page_2A->wr_spd_desc;
for (i = 0; i < desc_num; i ++) {
+ /* It happens (I have such a drive) that it returns descriptors
+ * with the same speeds each (in this case the maximum) */
+ if (i > 0 && priv->wr_speeds [i-1] == BRASERO_GET_16 (desc [i].speed))
+ continue;
+
priv->wr_speeds [i] = BRASERO_GET_16 (desc [i].speed);
max_wrt = MAX (max_wrt, priv->wr_speeds [i]);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]