diff options
author | jstebbins <[email protected]> | 2009-06-19 21:37:29 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-06-19 21:37:29 +0000 |
commit | e72c285bea7f766b3378e9ed2a6e3afe95c57278 (patch) | |
tree | ac676cdd7fffa13bb7b19f8fa52ec7a6ae587ce0 /gtk/src/subtitlehandler.c | |
parent | 7bfba0916df5e296d04ef43f42b05b0f2d66d8ca (diff) |
LinGui: Put DVD volume name scanning on it's own thread.
At startup, I scan all dvd devices for their volume names. Usually this
information is cached by the filesystem so this is fast. But every once
in a while this takes several seconds which delays the initial display
of the UI. This activity is now on it's own thread to prevent the delay.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2578 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/subtitlehandler.c')
-rw-r--r-- | gtk/src/subtitlehandler.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/src/subtitlehandler.c b/gtk/src/subtitlehandler.c index ea863b612..c5d44eb12 100644 --- a/gtk/src/subtitlehandler.c +++ b/gtk/src/subtitlehandler.c @@ -23,13 +23,13 @@ static void add_to_subtitle_list(signal_user_data_t *ud, GValue *settings); -void +static void free_subtitle_index_list(gpointer data) { g_free(data); } -void +static void free_subtitle_key(gpointer data) { if (data != NULL) @@ -188,7 +188,7 @@ ghb_set_pref_subtitle(gint titleindex, signal_user_data_t *ud) g_debug("ghb_set_pref_subtitle %d", titleindex); track_indices = g_hash_table_new_full(g_str_hash, g_str_equal, - NULL, free_subtitle_index_list); + free_subtitle_key, free_subtitle_index_list); ghb_ui_update(ud, "SubtitleTrack", ghb_int_value(0)); |