~ubuntu-branches/ubuntu/saucy/totem-pl-parser/saucy

« back to all changes in this revision

Viewing changes to plparse/totem-disc.c

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-05-30 10:34:17 UTC
  • mfrom: (1.4.23) (50.1.13 quantal)
  • Revision ID: package-import@ubuntu.com-20130530103417-cl6ixvi36prbftur
Tags: 3.4.5-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
429
429
    GMount *mount;
430
430
 
431
431
    mount = g_volume_get_mount (volume);
432
 
    cache->content_types = g_mount_guess_content_type_sync (mount, FALSE, NULL, NULL);
433
 
    g_object_unref (mount);
 
432
    if (mount) {
 
433
      cache->content_types = g_mount_guess_content_type_sync (mount, FALSE, NULL, NULL);
 
434
      g_object_unref (mount);
 
435
    }
434
436
  }
435
437
 
436
438
  return cache;
446
448
    return FALSE;
447
449
 
448
450
  drive = g_volume_get_drive (cache->volume);
449
 
  if (drive == NULL)
450
 
    return FALSE;
 
451
  if (drive == NULL) {
 
452
    /* No drive, so not something that can have a medium */
 
453
    return TRUE;
 
454
  }
451
455
  retval = g_drive_has_media (drive);
452
456
  g_object_unref (drive);
453
457