# HG changeset patch # User renatofilho # Date 1193340979 -3600 # Node ID f580fba841bf3723bc63882fe8b5db120a319532 # Parent c91d9f4d142fe98381533070f701c4dd71537c6a [svn r879] bug fixes diff -r c91d9f4d142f -r f580fba841bf gmyth-dbus/src/gmyth-dbus-server.c --- a/gmyth-dbus/src/gmyth-dbus-server.c Thu Oct 25 18:43:23 2007 +0100 +++ b/gmyth-dbus/src/gmyth-dbus-server.c Thu Oct 25 20:36:19 2007 +0100 @@ -217,6 +217,9 @@ GError **error) { GMythDbusServerPrivate *priv; + + g_debug ("%s:%d", __FUNCTION__, __LINE__); + priv = GMYTH_DBUS_SERVER_GET_PRIVATE (obj); if (priv->myth_backend) @@ -237,6 +240,9 @@ GError **error) { GMythDbusServerPrivate *priv; + + g_debug ("%s:%d", __FUNCTION__, __LINE__); + priv = GMYTH_DBUS_SERVER_GET_PRIVATE (obj); if (priv->myth_backend) @@ -251,6 +257,9 @@ GError **error) { GMythDbusServerPrivate *priv; + + g_debug ("%s:%d", __FUNCTION__, __LINE__); + priv = GMYTH_DBUS_SERVER_GET_PRIVATE (obj); if (priv->myth_epg) @@ -340,7 +349,9 @@ priv = GMYTH_DBUS_SERVER_GET_PRIVATE (obj); g_return_val_if_fail (priv->myth_backend != NULL, FALSE); - g_return_val_if_fail (gmyth_dbus_server_connect_epg (GMYTH_DBUS_SERVER (obj)), FALSE); + + if (!gmyth_dbus_server_connect_epg (GMYTH_DBUS_SERVER (obj))) + return FALSE; ch_type = GMYTH_DBUS_CHANNEL_G_TYPE; @@ -375,9 +386,11 @@ priv = GMYTH_DBUS_SERVER_GET_PRIVATE (obj); g_return_val_if_fail (priv->myth_backend != NULL, FALSE); - g_return_val_if_fail (gmyth_dbus_server_connect_epg (GMYTH_DBUS_SERVER (obj)), FALSE); + if (!gmyth_dbus_server_connect_epg (GMYTH_DBUS_SERVER (obj))) + return FALSE; + lst = NULL; len = gmyth_epg_get_channel_list (priv->myth_epg, &lst); *channels = g_ptr_array_sized_new (len); @@ -436,7 +449,8 @@ priv = GMYTH_DBUS_SERVER_GET_PRIVATE (obj); g_return_val_if_fail (priv->myth_backend, FALSE); - g_return_val_if_fail (gmyth_dbus_server_connect_epg (GMYTH_DBUS_SERVER (obj)), FALSE); + if (!gmyth_dbus_server_connect_epg (GMYTH_DBUS_SERVER (obj))) + return FALSE; g_time_val_from_iso8601 (start_time, &start_time_val); g_time_val_from_iso8601 (end_time, &end_time_val); @@ -534,7 +548,9 @@ priv = GMYTH_DBUS_SERVER_GET_PRIVATE (obj); g_return_val_if_fail (priv->myth_backend, FALSE); - g_return_val_if_fail (gmyth_dbus_server_connect_scheduler (GMYTH_DBUS_SERVER (obj)), FALSE); + + if (!gmyth_dbus_server_connect_scheduler (GMYTH_DBUS_SERVER (obj))) + return FALSE; record_type = GMYTH_DBUS_RECORD_G_TYPE; @@ -576,7 +592,8 @@ priv = GMYTH_DBUS_SERVER_GET_PRIVATE (obj); g_return_val_if_fail (priv->myth_backend, FALSE); - g_return_val_if_fail (gmyth_dbus_server_connect_scheduler (GMYTH_DBUS_SERVER (obj)), FALSE); + if (!gmyth_dbus_server_connect_scheduler (GMYTH_DBUS_SERVER (obj))) + return FALSE; len = gmyth_scheduler_get_recorded_list (priv->myth_scheduler, @@ -622,7 +639,8 @@ priv = GMYTH_DBUS_SERVER_GET_PRIVATE (obj); g_return_val_if_fail (priv->myth_backend, FALSE); - g_return_val_if_fail (gmyth_dbus_server_connect_scheduler (GMYTH_DBUS_SERVER (obj)), FALSE); + if (!gmyth_dbus_server_connect_scheduler (GMYTH_DBUS_SERVER (obj))) + return FALSE; len = gmyth_scheduler_get_schedule_list (priv->myth_scheduler, @@ -685,6 +703,8 @@ priv = GMYTH_DBUS_SERVER_GET_PRIVATE (obj); + file_transfer = NULL; + g_return_val_if_fail (priv->myth_backend, FALSE); if (!gmyth_util_file_exists (priv->myth_backend, uri)) @@ -783,7 +803,8 @@ priv = GMYTH_DBUS_SERVER_GET_PRIVATE (obj); g_return_val_if_fail (priv->myth_backend, FALSE); - g_return_val_if_fail (gmyth_dbus_server_connect_scheduler (GMYTH_DBUS_SERVER (obj)), FALSE); + if (!gmyth_dbus_server_connect_scheduler (GMYTH_DBUS_SERVER (obj))) + return FALSE; ret = gmyth_scheduler_stop_recording (priv->myth_scheduler, channel_id); @@ -846,7 +867,9 @@ *schedule_id = 0; g_return_val_if_fail (priv->myth_backend, FALSE); - g_return_val_if_fail (gmyth_dbus_server_connect_scheduler (GMYTH_DBUS_SERVER (obj)), FALSE); + + if (!gmyth_dbus_server_connect_scheduler (GMYTH_DBUS_SERVER (obj))) + return FALSE; g_time_val_from_iso8601 (start_time, &start_vtime); @@ -931,7 +954,9 @@ priv = GMYTH_DBUS_SERVER_GET_PRIVATE (obj); g_return_val_if_fail (priv->myth_backend, FALSE); - g_return_val_if_fail (gmyth_dbus_server_connect_scheduler (GMYTH_DBUS_SERVER (obj)), FALSE); + + if (!gmyth_dbus_server_connect_scheduler (GMYTH_DBUS_SERVER (obj))) + return FALSE; g_time_val_from_iso8601 (start_time, &start_vtime); g_time_val_from_iso8601 (end_time, &end_vtime); @@ -969,7 +994,9 @@ priv = GMYTH_DBUS_SERVER_GET_PRIVATE (obj); g_return_val_if_fail (priv->myth_backend, FALSE); - g_return_val_if_fail (gmyth_dbus_server_connect_scheduler (GMYTH_DBUS_SERVER (obj)), FALSE); + + if (!gmyth_dbus_server_connect_scheduler (GMYTH_DBUS_SERVER (obj))) + return FALSE; return gmyth_scheduler_delete_schedule (priv->myth_scheduler, schedule_id); }