[svn r464] removed debug message trunk
authorrenatofilho
Tue Mar 27 16:10:35 2007 +0100 (2007-03-27)
branchtrunk
changeset 459edaab488eaeb
parent 458 e7e73f8e7e4b
child 460 cde4aad8577a
[svn r464] removed debug message
libgnomevfs2-mythtv/modules/mythtv-method.c
     1.1 --- a/libgnomevfs2-mythtv/modules/mythtv-method.c	Tue Mar 27 16:01:57 2007 +0100
     1.2 +++ b/libgnomevfs2-mythtv/modules/mythtv-method.c	Tue Mar 27 16:10:35 2007 +0100
     1.3 @@ -214,12 +214,10 @@
     1.4      _GNOME_VFS_METHOD_PARAM_CHECK (method_handle != NULL);
     1.5      _GNOME_VFS_METHOD_PARAM_CHECK (method_handle->backend_info != NULL);
     1.6  
     1.7 -    g_debug ("F: %s L: %d", __FUNCTION__, __LINE__);
     1.8      
     1.9  	/* Connect to the backend */
    1.10  	if (gmyth_uri_is_livetv (method_handle->gmyth_uri) == TRUE) {
    1.11          
    1.12 -        g_debug ("F: %s L: %d", __FUNCTION__, __LINE__);
    1.13          
    1.14  		method_handle->livetv = gmyth_livetv_new (method_handle->backend_info);
    1.15  		method_handle->channel_name = gmyth_uri_get_channel_name (method_handle->gmyth_uri);
    1.16 @@ -238,7 +236,6 @@
    1.17                  goto error;
    1.18  		}
    1.19          
    1.20 -        g_debug ("F: %s L: %d", __FUNCTION__, __LINE__);
    1.21  
    1.22      	method_handle->file_transfer = 
    1.23              gmyth_livetv_create_file_transfer (method_handle->livetv);
    1.24 @@ -300,8 +297,6 @@
    1.25  	MythtvHandle *myth_handle = NULL;
    1.26      GnomeVFSResult result = GNOME_VFS_OK;
    1.27  
    1.28 -    g_debug ("F: %s L: %d", __FUNCTION__, __LINE__);
    1.29 -
    1.30  	_GNOME_VFS_METHOD_PARAM_CHECK (method_handle != NULL);
    1.31  	_GNOME_VFS_METHOD_PARAM_CHECK (uri != NULL);
    1.32  
    1.33 @@ -313,15 +308,12 @@
    1.34      if (result != GNOME_VFS_OK) 
    1.35          return result;
    1.36  
    1.37 -    g_debug ("F: %s L: %d", __FUNCTION__, __LINE__);
    1.38      result = myth_connection_start (myth_handle);
    1.39      if (result != GNOME_VFS_OK) {
    1.40          myth_destroy_handle (myth_handle);
    1.41          myth_handle = NULL;
    1.42          return result;
    1.43      }
    1.44 -    g_debug ("F: %s L: %d", __FUNCTION__, __LINE__);
    1.45 -
    1.46      *method_handle = (GnomeVFSMethodHandle *) myth_handle;
    1.47      
    1.48      return result;
    1.49 @@ -371,17 +363,11 @@
    1.50      myth_handle = (MythtvHandle *) method_handle;
    1.51      result = GNOME_VFS_OK;
    1.52  
    1.53 -    g_debug ("Reading %"G_GUINT64_FORMAT" bytes", num_bytes);
    1.54 -    
    1.55 -    g_debug ("F: %s L: %d", __FUNCTION__, __LINE__);
    1.56 -
    1.57      total_read = gmyth_file_transfer_read (myth_handle->file_transfer,
    1.58                                		   myth_buffer,
    1.59                           		   num_bytes, gmyth_uri_is_livetv (myth_handle->gmyth_uri));
    1.60  
    1.61  
    1.62 -    g_debug ("total read %"G_GINT64_FORMAT, total_read);
    1.63 -
    1.64      if (total_read == -1) {
    1.65          result = GNOME_VFS_ERROR_IO;
    1.66          total_read = 0;
    1.67 @@ -391,17 +377,11 @@
    1.68          result = GNOME_VFS_ERROR_EOF;
    1.69      }
    1.70  
    1.71 -    g_debug ("F: %s L: %d", __FUNCTION__, __LINE__);
    1.72 -
    1.73 -    
    1.74      if (total_read > 0) {
    1.75  	g_memmove (buffer, myth_buffer->data, total_read);
    1.76          g_byte_array_free (myth_buffer, TRUE);
    1.77          myth_handle->offset += total_read;
    1.78 -    } else {
    1.79 -        g_debug ("Nao leu nada");
    1.80 -    }
    1.81 -
    1.82 +    } 
    1.83  
    1.84      *bytes_read = (GnomeVFSFileSize) total_read;
    1.85