1.1 --- a/gmyth/src/gmyth_livetv.c Tue Dec 19 21:02:12 2006 +0000
1.2 +++ b/gmyth/src/gmyth_livetv.c Tue Dec 19 23:28:32 2006 +0000
1.3 @@ -138,15 +138,19 @@
1.4
1.5 static void
1.6 gmyth_livetv_monitor_signal_handler( GMythMonitorHandler *monitor, gint msg_code,
1.7 - gchar* message, gpointer livetv, gpointer user_data )
1.8 + gchar* message, gpointer user_data )
1.9 {
1.10 GMythLiveTV *live_tv = (GMythLiveTV*) user_data;
1.11 + g_object_ref( live_tv );
1.12
1.13 - gmyth_debug( "LIVETV Signal handler ( msg = %s, code = %d, livetv param = %s, user_data = %s )\n", message, msg_code, livetv != NULL ? "" :
1.14 + gmyth_debug( "LIVETV Signal handler ( msg = %s, code = %d, live_tv param = %s, user_data = %s )\n", message, msg_code, live_tv != NULL ? "" :
1.15 "NULL", user_data != NULL ? "" : "NULL" );
1.16
1.17 - if ( NULL == live_tv && user_data == NULL )
1.18 - return;
1.19 + if ( NULL == live_tv )
1.20 + {
1.21 + gmyth_debug( "LiveTV_obj is equals to NULL!!!" );
1.22 + return;
1.23 + }
1.24
1.25 switch ( msg_code )
1.26 {
1.27 @@ -159,10 +163,10 @@
1.28 /* advertises the FileTransfer about the program info changed */
1.29 if ( live_tv->file_transfer != NULL )
1.30 {
1.31 - g_signal_emit ( live_tv->file_transfer,
1.32 - GMYTH_FILE_TRANSFER_GET_CLASS (live_tv->file_transfer)->program_info_changed_handler_signal_id,
1.33 + g_signal_emit_by_name ( G_OBJECT(live_tv->file_transfer),
1.34 + "program-info-changed",
1.35 0, /* details */
1.36 - msg_code, live_tv, live_tv );
1.37 + msg_code, live_tv );
1.38
1.39 gmyth_livetv_monitor_handler_stop( live_tv );
1.40 } else
1.41 @@ -328,6 +332,7 @@
1.42 if ( !gmyth_livetv_monitor_handler_start( livetv ) )
1.43 {
1.44 res = FALSE;
1.45 + gmyth_debug("LiveTV MONITOR handler error on setup!");
1.46 goto error;
1.47 }
1.48