# HG changeset patch # User rosfran # Date 1170774023 0 # Node ID 73461d8db7ec9959eea0b3d24010565454016bb9 # Parent 41995e0df2baa48240504c1a26fc4c7ced94c83c [svn r330] Some minor fixes on do_open callback. diff -r 41995e0df2ba -r 73461d8db7ec libgnomevfs2-mythtv/modules/mythtv-method.c --- a/libgnomevfs2-mythtv/modules/mythtv-method.c Tue Feb 06 00:34:37 2007 +0000 +++ b/libgnomevfs2-mythtv/modules/mythtv-method.c Tue Feb 06 15:00:23 2007 +0000 @@ -91,7 +91,7 @@ myth_handle->livetv = NULL; myth_handle->mythtv_version = MYTHTV_VERSION_DEFAULT; myth_handle->bytes_read = 0; - myth_handle->content_size = -1; + myth_handle->content_size = (GnomeVFSFileSize) - 1; /* Creates and fills out the backend info structure */ backend_info = gmyth_backend_info_new_with_uri ( @@ -302,7 +302,7 @@ is_livetv = gmyth_uri_is_livetv( gmyth_uri ); - file_info->name = g_strdup (gmyth_uri_get_path (gmyth_uri)+1); + file_info->name = g_strdup (gmyth_uri_get_path (gmyth_uri)); file_info->valid_fields = file_info->valid_fields | GNOME_VFS_FILE_INFO_FIELDS_TYPE | GNOME_VFS_FILE_INFO_FIELDS_MIME_TYPE @@ -379,9 +379,9 @@ file_info->block_count = GNOME_VFS_FILE_INFO_FIELDS_BLOCK_COUNT; file_info->io_block_size = GNOME_VFS_FILE_INFO_FIELDS_IO_BLOCK_SIZE; + g_object_unref (backend_info); g_object_unref (file_transfer); - //g_object_unref (livetv); - g_object_unref (backend_info); + //g_object_unref (livetv); return GNOME_VFS_OK; }