rem: memset (&entry, 0, sizeof (entry)); if (xine_config_lookup_entry (bvw->priv->xine, "input.cdda_device", &entry)) { entry.str_value = g_strdup (path); xine_config_update_entry (bvw->priv->xine, &entry); }
add: bvw_config_helper_string (bvw->priv->xine, "input.cdda_device", path, &entry); entry.str_value = g_strdup (path); xine_config_update_entry (bvw->priv->xine, &entry);
context: bacon_video_widget_set_media_device (BaconVideoWidget *bvw, const char *path){	xine_cfg_entry_t entry;	/* DVD device */	if (xine_config_lookup_entry (bvw->priv->xine,			"input.dvd_device", &entry))	{		entry.str_value = g_strdup (path);		xine_config_update_entry (bvw->priv->xine, &entry);	}	/* VCD device */	memset (&entry, 0, sizeof (entry));	if (xine_config_lookup_entry (bvw->priv->xine,				"input.vcd_device", &entry))	{		entry.str_value = g_strdup (path);		xine_config_update_entry (bvw->priv->xine, &entry);	}	/* CDDA device */	memset (&entry, 0, sizeof (entry));	if (xine_config_lookup_entry (bvw->priv->xine,				"input.cdda_device", &entry))	{		entry.str_value = g_strdup (path);		xine_config_update_entry (bvw->priv->xine, &entry);	}}