rem: g_free (name);
add: bacon_video_widget_get_metadata (totem->bvw, BVW_INFO_CDINDEX, &v); if ((cdid = g_value_get_string (&v)) != NULL) { totem_playlist_set_cdindex ( TOTEM_PLAYLIST (totem->playlist), cdid); on_playlist_change_name ( TOTEM_PLAYLIST (totem->playlist), totem); } g_value_unset (&v); }
context: on_got_metadata_event (BaconVideoWidget *bvw, Totem *totem){        char *name = NULL;	gboolean custom;        bacon_video_widget_properties_update		(BACON_VIDEO_WIDGET_PROPERTIES (totem->properties),		 totem->bvw, FALSE);	name = totem_get_nice_name_for_stream (totem);	if (name == NULL)	{		name = totem_playlist_get_current_title			(totem->playlist, &custom);		custom = TRUE;	} else {		custom = FALSE;	}	update_mrl_label (totem, name);	if (custom == FALSE)		totem_playlist_set_title			(TOTEM_PLAYLIST (totem->playlist), name);	g_free (name);}