1.1 --- a/libgnomevfs2-mythtv/modules/mythtv-method.c Thu Feb 15 14:33:08 2007 +0000
1.2 +++ b/libgnomevfs2-mythtv/modules/mythtv-method.c Thu Feb 15 14:43:09 2007 +0000
1.3 @@ -96,14 +96,6 @@
1.4 return GNOME_VFS_ERROR_INVALID_HOST_NAME;
1.5 }
1.6
1.7 - /*
1.8 - if ( method_handle != NULL && *method_handle != NULL )
1.9 - {
1.10 - myth_handle = (MythtvHandle*)*method_handle;
1.11 - //if ( !myth_handle->configured )
1.12 - }
1.13 - */
1.14 -
1.15 if ((NULL == myth_handle) || !myth_handle->configured) {
1.16 myth_handle = g_new0 (MythtvHandle, 1);
1.17
1.18 @@ -306,7 +298,7 @@
1.19 GByteArray *tmp_buffer = g_byte_array_new ();
1.20
1.21 g_debug
1.22 - ("XXXXXXXXXX Asking %d bytes (there is %d bytes in the buffer)\n",
1.23 + ("Asking %d bytes (there is %d bytes in the buffer)\n",
1.24 buffer_size, myth_handle->buffer_remain);
1.25
1.26 gint len =
1.27 @@ -444,7 +436,7 @@
1.28 GNOME_VFS_PERM_USER_READ |
1.29 GNOME_VFS_PERM_OTHER_READ | GNOME_VFS_PERM_GROUP_READ;
1.30
1.31 - g_print ("gnome_vfs_uri == %s | gmyth_uri == %s.\n",
1.32 + g_debug ("gnome_vfs_uri == %s | gmyth_uri == %s.\n",
1.33 gnome_vfs_uri_get_path (uri),
1.34 gmyth_uri_get_path (gmyth_uri));
1.35
1.36 @@ -462,7 +454,7 @@
1.37 backend_info->port,
1.38 TRUE);
1.39 if (!res) {
1.40 - g_print ("[%s] LiveTV can not connect to backend",
1.41 + g_debug ("[%s] LiveTV can not connect to backend",
1.42 __FUNCTION__);
1.43 res = FALSE;
1.44 goto error;
1.45 @@ -470,7 +462,7 @@
1.46
1.47 if (gmyth_remote_util_get_free_recorder_count (socket) <=
1.48 0) {
1.49 - g_print ("No free remote encoder available.");
1.50 + g_debug ("No free remote encoder available.");
1.51 res = FALSE;
1.52 goto error;
1.53 }
1.54 @@ -478,11 +470,11 @@
1.55 /* Gets the recorder num */
1.56 recorder = remote_request_next_free_recorder (socket, -1);
1.57
1.58 - //if ( socket != NULL )
1.59 - // g_object_unref (socket);
1.60 + if ( socket != NULL )
1.61 + g_object_unref (socket);
1.62
1.63 if (recorder == NULL) {
1.64 - g_print ("[%s] None remote encoder available",
1.65 + g_debug ("[%s] None remote encoder available",
1.66 __FUNCTION__);
1.67 res = FALSE;
1.68 goto error;
1.69 @@ -491,7 +483,7 @@
1.70 /* Init remote encoder. Opens its control socket. */
1.71 res = gmyth_recorder_setup (recorder);
1.72 if (!res) {
1.73 - g_print
1.74 + g_debug
1.75 ("[%s] Fail while setting remote encoder\n",
1.76 __FUNCTION__);
1.77 res = FALSE;
1.78 @@ -506,7 +498,7 @@
1.79 res = FALSE;
1.80 goto error;
1.81 }
1.82 - // Spawn live tv. Uses the socket to send mythprotocol data to start livetv in the backend (remotelly)
1.83 + /* Spawn live tv. Uses the socket to send mythprotocol data to start livetv in the backend (remotelly) */
1.84 res = gmyth_recorder_spawntv (recorder,
1.85 gmyth_tvchain_get_id
1.86 (tvchain));
1.87 @@ -516,18 +508,14 @@
1.88 res = FALSE;
1.89 goto error;
1.90 }
1.91 - //gchar* channel_name = gmyth_uri_get_channel_name( gmyth_uri );
1.92
1.93 /* DEBUG message */
1.94 GMythProgramInfo *prog_info =
1.95 gmyth_recorder_get_current_program_info (recorder);
1.96
1.97 if (prog_info != NULL) {
1.98 - //gmyth_program_info_print( prog_info );
1.99 - g_debug ("Program Info: %s\n",
1.100 - gmyth_program_info_to_string (prog_info));
1.101
1.102 - g_print ("path = %s", prog_info->pathname->str);
1.103 + g_debug ("path = %s", prog_info->pathname->str);
1.104
1.105 file_info->name =
1.106 g_strdup (g_strrstr