diff -r 839c0fc4f285 -r 8b8394c61142 libgnomevfs2-mythtv/modules/mythtv-method.c --- a/libgnomevfs2-mythtv/modules/mythtv-method.c Thu Feb 15 14:33:08 2007 +0000 +++ b/libgnomevfs2-mythtv/modules/mythtv-method.c Thu Feb 15 14:42:08 2007 +0000 @@ -96,14 +96,6 @@ return GNOME_VFS_ERROR_INVALID_HOST_NAME; } - /* - if ( method_handle != NULL && *method_handle != NULL ) - { - myth_handle = (MythtvHandle*)*method_handle; - //if ( !myth_handle->configured ) - } - */ - if ((NULL == myth_handle) || !myth_handle->configured) { myth_handle = g_new0 (MythtvHandle, 1); @@ -306,7 +298,7 @@ GByteArray *tmp_buffer = g_byte_array_new (); g_debug - ("XXXXXXXXXX Asking %d bytes (there is %d bytes in the buffer)\n", + ("Asking %d bytes (there is %d bytes in the buffer)\n", buffer_size, myth_handle->buffer_remain); gint len = @@ -444,7 +436,7 @@ GNOME_VFS_PERM_USER_READ | GNOME_VFS_PERM_OTHER_READ | GNOME_VFS_PERM_GROUP_READ; - g_print ("gnome_vfs_uri == %s | gmyth_uri == %s.\n", + g_debug ("gnome_vfs_uri == %s | gmyth_uri == %s.\n", gnome_vfs_uri_get_path (uri), gmyth_uri_get_path (gmyth_uri)); @@ -462,7 +454,7 @@ backend_info->port, TRUE); if (!res) { - g_print ("[%s] LiveTV can not connect to backend", + g_debug ("[%s] LiveTV can not connect to backend", __FUNCTION__); res = FALSE; goto error; @@ -470,7 +462,7 @@ if (gmyth_remote_util_get_free_recorder_count (socket) <= 0) { - g_print ("No free remote encoder available."); + g_debug ("No free remote encoder available."); res = FALSE; goto error; } @@ -478,11 +470,11 @@ /* Gets the recorder num */ recorder = remote_request_next_free_recorder (socket, -1); - //if ( socket != NULL ) - // g_object_unref (socket); + if ( socket != NULL ) + g_object_unref (socket); if (recorder == NULL) { - g_print ("[%s] None remote encoder available", + g_debug ("[%s] None remote encoder available", __FUNCTION__); res = FALSE; goto error; @@ -491,7 +483,7 @@ /* Init remote encoder. Opens its control socket. */ res = gmyth_recorder_setup (recorder); if (!res) { - g_print + g_debug ("[%s] Fail while setting remote encoder\n", __FUNCTION__); res = FALSE; @@ -506,7 +498,7 @@ res = FALSE; goto error; } - // Spawn live tv. Uses the socket to send mythprotocol data to start livetv in the backend (remotelly) + /* Spawn live tv. Uses the socket to send mythprotocol data to start livetv in the backend (remotelly) */ res = gmyth_recorder_spawntv (recorder, gmyth_tvchain_get_id (tvchain)); @@ -516,18 +508,14 @@ res = FALSE; goto error; } - //gchar* channel_name = gmyth_uri_get_channel_name( gmyth_uri ); /* DEBUG message */ GMythProgramInfo *prog_info = gmyth_recorder_get_current_program_info (recorder); if (prog_info != NULL) { - //gmyth_program_info_print( prog_info ); - g_debug ("Program Info: %s\n", - gmyth_program_info_to_string (prog_info)); - g_print ("path = %s", prog_info->pathname->str); + g_debug ("path = %s", prog_info->pathname->str); file_info->name = g_strdup (g_strrstr