summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-07-19 17:34:22 +0000
committerjstebbins <[email protected]>2009-07-19 17:34:22 +0000
commitada1b7a2c87de0c8c31eea795488e2f87f709412 (patch)
tree919f1526fe4f0cdbb685f53bdeed35f533a017ac /gtk
parent7497e03a099e8c395e322dd5b9f504e14376317d (diff)
LinGui: fix problem that causes dvd drive to close immediately after an eject
a stray bit of code was attempting to read from the drive causing it to close the tray. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2714 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-rw-r--r--gtk/src/callbacks.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index 53e156d83..f45060b66 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -654,6 +654,7 @@ update_source_label(signal_user_data_t *ud, const gchar *source, gboolean update
gchar *start;
gchar *filename = g_strdup(source);
+ g_debug("update_source_label()");
len = strlen(filename);
if (filename[len-1] == G_DIR_SEPARATOR) filename[len-1] = 0;
if (g_file_test(filename, G_FILE_TEST_IS_DIR))
@@ -879,6 +880,7 @@ ghb_do_scan(
gint titlenum,
gboolean force)
{
+ g_debug("ghb_do_scan()");
if (!force && last_scan_file != NULL &&
strcmp(last_scan_file, filename) == 0)
{
@@ -3381,6 +3383,7 @@ handle_media_change(const gchar *device, gboolean insert, signal_user_data_t *ud
{
ghb_hb_cleanup(TRUE);
prune_logs(ud);
+ ghb_settings_set_string(ud->settings, "source", "/dev/null");
ghb_backend_scan("/dev/null", 0, 1);
}
}
@@ -3471,6 +3474,7 @@ drive_changed_cb(GVolumeMonitor *gvm, GDrive *gd, signal_user_data_t *ud)
{
ghb_hb_cleanup(TRUE);
prune_logs(ud);
+ ghb_settings_set_string(ud->settings, "source", "/dev/null");
ghb_backend_scan("/dev/null", 0, 1);
}
}