[svn r302] More fixes on clean-up variables, closing connections, etc. trunk
authorrosfran
Wed Jan 24 23:06:53 2007 +0000 (2007-01-24)
branchtrunk
changeset 301c3fdac309aec
parent 300 01d60f80fa52
child 302 42c40657fc61
[svn r302] More fixes on clean-up variables, closing connections, etc.
libgnomevfs2-mythtv/modules/mythtv-method.c
     1.1 --- a/libgnomevfs2-mythtv/modules/mythtv-method.c	Wed Jan 24 21:52:23 2007 +0000
     1.2 +++ b/libgnomevfs2-mythtv/modules/mythtv-method.c	Wed Jan 24 23:06:53 2007 +0000
     1.3 @@ -271,7 +271,7 @@
     1.4      GMythBackendInfo  *backend_info  = NULL;
     1.5      GMythURI					*gmyth_uri		 = NULL;
     1.6      gboolean 					is_livetv 		 = FALSE;
     1.7 -    gboolean					ret						 = FALSE;
     1.8 +    gboolean					ret						 = TRUE;
     1.9      
    1.10      /* Creates and fills out the backend info structure */    
    1.11  	  backend_info = gmyth_backend_info_new_with_uri ( 
    1.12 @@ -283,7 +283,7 @@
    1.13  
    1.14  	  is_livetv = gmyth_uri_is_livetv( gmyth_uri );
    1.15  
    1.16 -    file_info->name = g_strdup (gmyth_uri_get_path (gmyth_uri));
    1.17 +    file_info->name = g_strdup (gmyth_uri_get_path (gmyth_uri)+1);
    1.18      file_info->valid_fields = file_info->valid_fields
    1.19          | GNOME_VFS_FILE_INFO_FIELDS_TYPE
    1.20          | GNOME_VFS_FILE_INFO_FIELDS_MIME_TYPE
    1.21 @@ -296,7 +296,7 @@
    1.22          GNOME_VFS_PERM_OTHER_READ |
    1.23          GNOME_VFS_PERM_GROUP_READ;
    1.24  
    1.25 -	  /* Connect to the backend */	  
    1.26 +	  /* Connect to the backend */
    1.27  	  if ( gmyth_uri != NULL && is_livetv == TRUE ) {
    1.28  	    livetv = gmyth_livetv_new ();
    1.29  	    
    1.30 @@ -336,10 +336,12 @@
    1.31  		
    1.32  	  } /* if - LiveTV or not? */
    1.33  	  
    1.34 +	  /*	  
    1.35      if (ret == FALSE) {
    1.36  	    g_warning ("MythTV FileTransfer open error\n");
    1.37  	    return GNOME_VFS_ERROR_NOT_OPEN;
    1.38  	  }
    1.39 +	  */
    1.40  
    1.41      file_info->size = gmyth_file_transfer_get_filesize (file_transfer);
    1.42      file_info->block_count = GNOME_VFS_FILE_INFO_FIELDS_BLOCK_COUNT;
    1.43 @@ -348,6 +350,7 @@
    1.44      g_object_unref (file_transfer);
    1.45      g_object_unref (livetv);
    1.46      g_object_unref (backend_info);
    1.47 +
    1.48      return GNOME_VFS_OK;
    1.49  }
    1.50