[svn r330] Some minor fixes on do_open callback.
1.1 --- a/libgnomevfs2-mythtv/modules/mythtv-method.c Tue Feb 06 00:34:37 2007 +0000
1.2 +++ b/libgnomevfs2-mythtv/modules/mythtv-method.c Tue Feb 06 15:00:23 2007 +0000
1.3 @@ -91,7 +91,7 @@
1.4 myth_handle->livetv = NULL;
1.5 myth_handle->mythtv_version = MYTHTV_VERSION_DEFAULT;
1.6 myth_handle->bytes_read = 0;
1.7 - myth_handle->content_size = -1;
1.8 + myth_handle->content_size = (GnomeVFSFileSize) - 1;
1.9
1.10 /* Creates and fills out the backend info structure */
1.11 backend_info = gmyth_backend_info_new_with_uri (
1.12 @@ -302,7 +302,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);
1.17 + file_info->name = g_strdup (gmyth_uri_get_path (gmyth_uri));
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 @@ -379,9 +379,9 @@
1.22 file_info->block_count = GNOME_VFS_FILE_INFO_FIELDS_BLOCK_COUNT;
1.23 file_info->io_block_size = GNOME_VFS_FILE_INFO_FIELDS_IO_BLOCK_SIZE;
1.24
1.25 + g_object_unref (backend_info);
1.26 g_object_unref (file_transfer);
1.27 - //g_object_unref (livetv);
1.28 - g_object_unref (backend_info);
1.29 + //g_object_unref (livetv);
1.30
1.31 return GNOME_VFS_OK;
1.32 }