# HG changeset patch # User renatofilho # Date 1175008235 -3600 # Node ID edaab488eaebc286d39a1f6e4afc2e1d607140e4 # Parent e7e73f8e7e4bbcc1085ace673aa5a30fa0170d71 [svn r464] removed debug message diff -r e7e73f8e7e4b -r edaab488eaeb libgnomevfs2-mythtv/modules/mythtv-method.c --- a/libgnomevfs2-mythtv/modules/mythtv-method.c Tue Mar 27 16:01:57 2007 +0100 +++ b/libgnomevfs2-mythtv/modules/mythtv-method.c Tue Mar 27 16:10:35 2007 +0100 @@ -214,12 +214,10 @@ _GNOME_VFS_METHOD_PARAM_CHECK (method_handle != NULL); _GNOME_VFS_METHOD_PARAM_CHECK (method_handle->backend_info != NULL); - g_debug ("F: %s L: %d", __FUNCTION__, __LINE__); /* Connect to the backend */ if (gmyth_uri_is_livetv (method_handle->gmyth_uri) == TRUE) { - g_debug ("F: %s L: %d", __FUNCTION__, __LINE__); method_handle->livetv = gmyth_livetv_new (method_handle->backend_info); method_handle->channel_name = gmyth_uri_get_channel_name (method_handle->gmyth_uri); @@ -238,7 +236,6 @@ goto error; } - g_debug ("F: %s L: %d", __FUNCTION__, __LINE__); method_handle->file_transfer = gmyth_livetv_create_file_transfer (method_handle->livetv); @@ -300,8 +297,6 @@ MythtvHandle *myth_handle = NULL; GnomeVFSResult result = GNOME_VFS_OK; - g_debug ("F: %s L: %d", __FUNCTION__, __LINE__); - _GNOME_VFS_METHOD_PARAM_CHECK (method_handle != NULL); _GNOME_VFS_METHOD_PARAM_CHECK (uri != NULL); @@ -313,15 +308,12 @@ if (result != GNOME_VFS_OK) return result; - g_debug ("F: %s L: %d", __FUNCTION__, __LINE__); result = myth_connection_start (myth_handle); if (result != GNOME_VFS_OK) { myth_destroy_handle (myth_handle); myth_handle = NULL; return result; } - g_debug ("F: %s L: %d", __FUNCTION__, __LINE__); - *method_handle = (GnomeVFSMethodHandle *) myth_handle; return result; @@ -371,17 +363,11 @@ myth_handle = (MythtvHandle *) method_handle; result = GNOME_VFS_OK; - g_debug ("Reading %"G_GUINT64_FORMAT" bytes", num_bytes); - - g_debug ("F: %s L: %d", __FUNCTION__, __LINE__); - total_read = gmyth_file_transfer_read (myth_handle->file_transfer, myth_buffer, num_bytes, gmyth_uri_is_livetv (myth_handle->gmyth_uri)); - g_debug ("total read %"G_GINT64_FORMAT, total_read); - if (total_read == -1) { result = GNOME_VFS_ERROR_IO; total_read = 0; @@ -391,17 +377,11 @@ result = GNOME_VFS_ERROR_EOF; } - g_debug ("F: %s L: %d", __FUNCTION__, __LINE__); - - if (total_read > 0) { g_memmove (buffer, myth_buffer->data, total_read); g_byte_array_free (myth_buffer, TRUE); myth_handle->offset += total_read; - } else { - g_debug ("Nao leu nada"); - } - + } *bytes_read = (GnomeVFSFileSize) total_read;