# HG changeset patch # User melunko # Date 1161700488 -3600 # Node ID a30f59f76bdab275f3a990ac037d2ac22b6d53ee # Parent 8bff300ebf50f250af3b2ad52ee1fda690aab511 [svn r49] myth_file_transfer renamed to gmyth_file_transfer diff -r 8bff300ebf50 -r a30f59f76bda libgnomevfs2-mythtv/modules/mythtv-method.c --- a/libgnomevfs2-mythtv/modules/mythtv-method.c Tue Oct 24 15:02:26 2006 +0100 +++ b/libgnomevfs2-mythtv/modules/mythtv-method.c Tue Oct 24 15:34:48 2006 +0100 @@ -27,7 +27,7 @@ #include #include -#include "myth_file_transfer.h" +#include "gmyth_file_transfer.h" #define GST_MYTHTV_ID_NUM 1 #define MYTHTV_VERSION_DEFAULT 30 @@ -40,7 +40,7 @@ GnomeVFSContext *context); typedef struct { - MythFileTransfer *file_transfer; + GMythFileTransfer *file_transfer; gint mythtv_version; guint64 content_size; @@ -94,7 +94,7 @@ myth_handle->live_tv = FALSE; /* Connect to the backend */ - myth_handle->file_transfer = myth_file_transfer_new ( GST_MYTHTV_ID_NUM /*mythtv->live_tv_id*/, + myth_handle->file_transfer = gmyth_file_transfer_new ( GST_MYTHTV_ID_NUM /*mythtv->live_tv_id*/, g_string_new( transfer_uri ), -1, myth_handle->mythtv_version ); if ( myth_handle->file_transfer == NULL ) { @@ -102,14 +102,14 @@ } /* sets the Playback monitor connection */ - ret = myth_file_transfer_playback_setup( &(myth_handle->file_transfer), myth_handle->live_tv ); + ret = gmyth_file_transfer_playback_setup( &(myth_handle->file_transfer), myth_handle->live_tv ); if (ret == FALSE) { g_printerr ("Mythtv FileTransfer playback setup error\n"); return GNOME_VFS_ERROR_NOT_OPEN; } /* sets the FileTransfer instance connection (video/audio download) */ - ret = myth_file_transfer_setup( &(myth_handle->file_transfer), myth_handle->live_tv ); + ret = gmyth_file_transfer_setup( &(myth_handle->file_transfer), myth_handle->live_tv ); if ( ret == FALSE ) { g_printerr ("MythTV FileTransfer request failed when setting up socket connection!\n" ); @@ -156,7 +156,7 @@ // lock here ??? while ( bytes_to_read > 0 ) { - len = myth_file_transfer_read( myth_handle->file_transfer, + len = gmyth_file_transfer_read( myth_handle->file_transfer, buffer + offset, bytes_to_read, TRUE ); if ( len > 0 ) {