add: g_log_set_always_fatal (G_LOG_LEVEL_WARNING);
context: main (gint   argc,      gchar *argv[]){  MediaType type;  GError *error = NULL;  const char *type_s = NULL;  char *url = NULL;  gboolean is_dir = FALSE;  GList *or, *list;  GnomeVFSVolumeMonitor *mon;  if (argc != 2) {    g_print ("Usage: %s <device>\n", argv[0]);    return -1;  }  g_type_init ();  gnome_vfs_init ();  if (g_file_test (argv[1], G_FILE_TEST_IS_DIR) != FALSE) {    type = totem_cd_detect_type_from_dir (argv[1], &url, &error);    is_dir = TRUE;  } else {    type = totem_cd_detect_type (argv[1], &error);  }  switch (type) {    case MEDIA_TYPE_ERROR:      mon = gnome_vfs_get_volume_monitor ();      g_print ("Error: %s\n", error ? error->message : "unknown reason");      g_print ("\n");      g_print ("List of connected drives:\n");      for (or = list = gnome_vfs_volume_monitor_get_connected_drives (mon);		      list != NULL; list = list->next) {        char *device;	device = gnome_vfs_drive_get_device_path ((GnomeVFSDrive *) list->data);        g_print ("%s\n", device);	g_free (device);      }      if (or == NULL)        g_print ("No connected drives!\n");      return -1;    case MEDIA_TYPE_DATA:      type_s = "Data CD";      break;    case MEDIA_TYPE_CDDA:      type_s = "Audio CD";      break;    case MEDIA_TYPE_VCD:      type_s = "Video CD";      break;    case MEDIA_TYPE_DVD:      type_s = "DVD";      break;    default:      g_assert_not_reached ();  }  g_print ("%s contains a %s\n", argv[1], type_s);  if (is_dir != FALSE && url != NULL) {    g_print ("URL for directory is %s\n", url);  }  g_free (url);  return 0;}