# HG changeset patch # User rosfran # Date 1179501390 -3600 # Node ID ba11bfc5f23964b1c4d30f2e9fd577ae0970f0c2 # Parent 74c1f4270cf0f1989e13a8225cc103067176fe72 [svn r696] Some fixes on program info changing. diff -r 74c1f4270cf0 -r ba11bfc5f239 gmyth/src/gmyth_file_transfer.c --- a/gmyth/src/gmyth_file_transfer.c Fri May 18 01:34:31 2007 +0100 +++ b/gmyth/src/gmyth_file_transfer.c Fri May 18 16:16:30 2007 +0100 @@ -833,11 +833,14 @@ gmyth_file_get_file_name (GMYTH_FILE (transfer))) != 0) + + _control_release_context (transfer); ret = gmyth_file_transfer_open (transfer, g_strrstr (prog_info->pathname-> str, "/")); - + _control_acquire_context (transfer, TRUE); + if (prog_info != NULL) g_object_unref (prog_info); @@ -848,7 +851,7 @@ gmyth_file_get_file_name (GMYTH_FILE (transfer))); } - } /* if */ + } /* if */ error: diff -r 74c1f4270cf0 -r ba11bfc5f239 gmyth/src/gmyth_monitor_handler.c --- a/gmyth/src/gmyth_monitor_handler.c Fri May 18 01:34:31 2007 +0100 +++ b/gmyth/src/gmyth_monitor_handler.c Fri May 18 16:16:30 2007 +0100 @@ -376,9 +376,7 @@ strlen (*back_msg_action), "SCHEDULE_CHANGE") || g_strstr_len (*back_msg_action, - strlen (*back_msg_action), "LIVETV_WATCH") - || g_strstr_len (*back_msg_action, - strlen (*back_msg_action), "SIGNAL")) + strlen (*back_msg_action), "LIVETV_WATCH")) { gmyth_debug ("MONITOR: message type == GMYTH_BACKEND_PROGRAM_INFO_CHANGED, msg = %s", @@ -522,7 +520,7 @@ strlist, &back_msg_action); - if (monitor != NULL) + if (monitor != NULL && msg_type != GMYTH_BACKEND_NO_MESSAGE) g_signal_emit (monitor, GMYTH_MONITOR_HANDLER_GET_CLASS (monitor)->backend_events_handler_signal_id, 0, /* details */ msg_type, back_msg_action); @@ -541,7 +539,7 @@ io_cond = g_io_channel_get_buffer_condition (io_channel); - g_usleep( 5000 ); + g_usleep( 500 ); } while (recv <= 0 && ((io_cond & G_IO_HUP) == 0));