brasero r1040 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r1040 - in trunk: . src
- Date: Sat, 2 Aug 2008 17:45:59 +0000 (UTC)
Author: philippr
Date: Sat Aug 2 17:45:59 2008
New Revision: 1040
URL: http://svn.gnome.org/viewvc/brasero?rev=1040&view=rev
Log:
Fix problem with audio project size when removing audio track that is loading
* src/brasero-audio-disc.c (brasero_audio_disc_remove):
Modified:
trunk/ChangeLog
trunk/src/brasero-audio-disc.c
Modified: trunk/src/brasero-audio-disc.c
==============================================================================
--- trunk/src/brasero-audio-disc.c (original)
+++ trunk/src/brasero-audio-disc.c Sat Aug 2 17:45:59 2008
@@ -1857,9 +1857,12 @@
LENGTH_COL, &length,
-1);
- if (uri)
- sectors = BRASERO_DURATION_TO_SECTORS (BRASERO_AUDIO_TRACK_LENGTH (start, end));
- else /* gap */
+ sectors = 0;
+ if (uri) {
+ if (end - start > 0)
+ sectors = BRASERO_DURATION_TO_SECTORS (BRASERO_AUDIO_TRACK_LENGTH (start, end));
+ }
+ else if (length) /* gap */
sectors = BRASERO_DURATION_TO_SECTORS (length);
if (brasero_audio_disc_has_gap (disc, &iter, &gap_iter)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]