EmpathyCallWindowPriv *priv = GET_PRIV (self);
gchar *tmp;
+ /* translators: Call is a noun and %s is the contact name. This string is used
+ * in the window title */
tmp = g_strdup_printf (_("Call with %s"),
empathy_contact_get_name (priv->contact));
gtk_window_set_title (GTK_WINDOW (self), tmp);
else
{
g_warning ("call handler doesn't have a contact");
+ /* translators: Call is a noun. This string is used in the window title */
gtk_window_set_title (GTK_WINDOW (self), _("Call"));
/* Since we can't access the remote contact, we can't get a connection
}
if (priv->bus_message_source_id != 0)
- g_source_remove (priv->bus_message_source_id);
+ {
+ g_source_remove (priv->bus_message_source_id);
+ priv->bus_message_source_id = 0;
+ }
/* free any data held directly by the object here */
g_mutex_free (priv->lock);
return TRUE;
if (priv->bus_message_source_id != 0)
- g_source_remove (priv->bus_message_source_id);
+ {
+ g_source_remove (priv->bus_message_source_id);
+ priv->bus_message_source_id = 0;
+ }
+
state_change_return = gst_element_set_state (priv->pipeline, GST_STATE_NULL);
if (state_change_return == GST_STATE_CHANGE_SUCCESS ||
if (priv->pipeline != NULL)
{
if (priv->bus_message_source_id != 0)
- g_source_remove (priv->bus_message_source_id);
+ {
+ g_source_remove (priv->bus_message_source_id);
+ priv->bus_message_source_id = 0;
+ }
gst_element_set_state (priv->pipeline, GST_STATE_NULL);
}