Skip to content

Commit

Permalink
fix for issue #32
Browse files Browse the repository at this point in the history
git-svn-id: http://sacd-ripper.googlecode.com/svn/trunk@372 e4565217-ec48-2de7-c894-ee36b58b2fd4
  • Loading branch information
[email protected] committed Jan 3, 2012
1 parent 3c5aa6f commit 6571eab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,8 @@ void main_loop(void)
{
start_ripping_gui(output_format_options[output_format]);

reset_output_devices();

// action is handled
dialog_action = 0;
}
Expand Down
7 changes: 6 additions & 1 deletion src/output_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ int output_device_changed = -1;
char *output_device = 0;
double output_device_space = 0;
uint64_t output_device_sectors = 0;
static int old_devices = 0;

void reset_output_devices(void)
{
old_devices = 0;
}

int poll_output_devices(void)
{
Expand All @@ -35,7 +41,6 @@ int poll_output_devices(void)
"/dev_usb004", "/dev_usb005", "/dev_usb006", "/dev_usb007",
"/dev_cf", "/dev_sd", "/dev_ms"
};
static int old_devices;
uint32_t current_devices = 0;
char *largest_device = 0;
double largest_device_space = 0;
Expand Down
1 change: 1 addition & 0 deletions src/output_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ extern int output_device_changed;
extern uint64_t output_device_sectors;

int poll_output_devices(void);
void reset_output_devices(void);

#ifdef __cplusplus
}
Expand Down

0 comments on commit 6571eab

Please sign in to comment.