# HG changeset patch # User rosfran # Date 1170945036 0 # Node ID aedcbbf818b7b611c2bf681b20185c3c3258990e # Parent e326033fb0485a7a551fdd15be93e622abdea619 [svn r337] Changed the g_object_unref's in the do_get_file_info. diff -r e326033fb048 -r aedcbbf818b7 libgnomevfs2-mythtv/modules/mythtv-method.c --- a/libgnomevfs2-mythtv/modules/mythtv-method.c Wed Feb 07 20:39:10 2007 +0000 +++ b/libgnomevfs2-mythtv/modules/mythtv-method.c Thu Feb 08 14:30:36 2007 +0000 @@ -349,7 +349,9 @@ /* Gets the recorder num */ recorder = remote_request_next_free_recorder (socket, -1); - gmyth_socket_close_connection (socket); + + if ( socket != NULL ) + g_object_unref (socket); if ( recorder == NULL ) { g_print ("[%s] None remote encoder available", __FUNCTION__); @@ -417,7 +419,7 @@ } /* if - changes the channel number */ - //sleep( 1 ); + sleep( 1 ); } @@ -451,7 +453,7 @@ g_object_unref (tvchain); if ( recorder != NULL ) - g_object_unref (recorder); + gmyth_recorder_close (recorder); if ( prog_info != NULL ) g_object_unref( prog_info ); @@ -470,21 +472,20 @@ /* sets the Playback monitor connection */ ret = gmyth_file_transfer_open ( file_transfer, gmyth_uri_get_path (gmyth_uri) ); - file_info->name = g_strdup ( gnome_vfs_uri_get_path (uri) ); + file_info->name = g_strdup ( gnome_vfs_uri_get_path (uri) ); - } /* if - LiveTV or not? */ + } /* if - LiveTV or not? */ - /* if (ret == FALSE) { - g_warning ("MythTV FileTransfer open error\n"); + g_debug ("MythTV FileTransfer open error\n"); return GNOME_VFS_ERROR_NOT_OPEN; } - */ + if ( ret == TRUE && file_transfer != NULL ) { file_info->size = gmyth_file_transfer_get_filesize (file_transfer); if ( file_transfer ) - g_object_unref (file_transfer); + gmyth_file_transfer_close (file_transfer); } file_info->block_count = GNOME_VFS_FILE_INFO_FIELDS_BLOCK_COUNT;