From 5ae90828aee98fcb41f68c3c7c4ffafde58d6de7 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Tue, 6 Dec 2005 19:41:45 +0000 Subject: we can even get error messages while we are capturing (e.g. when a network cable is unplugged) problem found by Joerg Mayer svn path=/trunk/; revision=16704 --- capture.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'capture.c') diff --git a/capture.c b/capture.c index 6bb18ca01f..4cfb3fc4b7 100644 --- a/capture.c +++ b/capture.c @@ -359,17 +359,17 @@ capture_input_drops(capture_options *capture_opts, int dropped) } -/* Capture child told us, that an error has occurred while starting the capture. */ +/* Capture child told us, that an error has occurred while starting/running the capture. */ void capture_input_error_message(capture_options *capture_opts, char *error_message) { g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_MESSAGE, "Error message from child: \"%s\"", error_message); - g_assert(capture_opts->state == CAPTURE_PREPARING); + g_assert(capture_opts->state == CAPTURE_PREPARING || capture_opts->state == CAPTURE_RUNNING); simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_message); - /* the capture child will close the sync_pipe, nothing to do for now */ + /* the capture child will close the sync_pipe if required, nothing to do for now */ } -- cgit v1.2.1