diff options
Diffstat (limited to 'capture.c')
-rw-r--r-- | capture.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -221,11 +221,10 @@ capture_input_new_file(capture_options *capture_opts, gchar *new_file) return FALSE; break; } - - /* XXX - currently won't work with non real-time mode */ - cf_callback_invoke(cf_cb_live_capture_started, capture_opts->cf); } + cf_callback_invoke(cf_cb_live_capture_started, capture_opts->cf); + return TRUE; } @@ -296,14 +295,14 @@ capture_input_closed(capture_options *capture_opts) main_window_quit(); } - cf_callback_invoke(cf_cb_live_capture_finished, capture_opts->cf); - } else { /* this is a normal mode capture, read in the capture file data */ capture_input_read_all(capture_opts, cf_is_tempfile(capture_opts->cf), cf_get_drops_known(capture_opts->cf), cf_get_drops(capture_opts->cf)); } + cf_callback_invoke(cf_cb_live_capture_finished, capture_opts->cf); + /* We're not doing a capture any more, so we don't have a save file. */ g_assert(capture_opts->save_file); g_free(capture_opts->save_file); |