# HG changeset patch # User rosfran # Date 1169680013 0 # Node ID c3fdac309aec3747083893473cefbd40601a1565 # Parent 01d60f80fa524566f5f725d46f4f3cc09ba52eef [svn r302] More fixes on clean-up variables, closing connections, etc. diff -r 01d60f80fa52 -r c3fdac309aec libgnomevfs2-mythtv/modules/mythtv-method.c --- a/libgnomevfs2-mythtv/modules/mythtv-method.c Wed Jan 24 21:52:23 2007 +0000 +++ b/libgnomevfs2-mythtv/modules/mythtv-method.c Wed Jan 24 23:06:53 2007 +0000 @@ -271,7 +271,7 @@ GMythBackendInfo *backend_info = NULL; GMythURI *gmyth_uri = NULL; gboolean is_livetv = FALSE; - gboolean ret = FALSE; + gboolean ret = TRUE; /* Creates and fills out the backend info structure */ backend_info = gmyth_backend_info_new_with_uri ( @@ -283,7 +283,7 @@ is_livetv = gmyth_uri_is_livetv( gmyth_uri ); - file_info->name = g_strdup (gmyth_uri_get_path (gmyth_uri)); + file_info->name = g_strdup (gmyth_uri_get_path (gmyth_uri)+1); file_info->valid_fields = file_info->valid_fields | GNOME_VFS_FILE_INFO_FIELDS_TYPE | GNOME_VFS_FILE_INFO_FIELDS_MIME_TYPE @@ -296,7 +296,7 @@ GNOME_VFS_PERM_OTHER_READ | GNOME_VFS_PERM_GROUP_READ; - /* Connect to the backend */ + /* Connect to the backend */ if ( gmyth_uri != NULL && is_livetv == TRUE ) { livetv = gmyth_livetv_new (); @@ -336,10 +336,12 @@ } /* if - LiveTV or not? */ + /* if (ret == FALSE) { g_warning ("MythTV FileTransfer open error\n"); return GNOME_VFS_ERROR_NOT_OPEN; } + */ file_info->size = gmyth_file_transfer_get_filesize (file_transfer); file_info->block_count = GNOME_VFS_FILE_INFO_FIELDS_BLOCK_COUNT; @@ -348,6 +350,7 @@ g_object_unref (file_transfer); g_object_unref (livetv); g_object_unref (backend_info); + return GNOME_VFS_OK; }