[brasero] Fix a problem in brasero_video_tree_model_path_to_track () which returned the wrong BraseroTrack
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Fix a problem in brasero_video_tree_model_path_to_track () which returned the wrong BraseroTrack
- Date: Fri, 4 Sep 2009 18:16:44 +0000 (UTC)
commit 14514c5aed47b234ac33a7b9258e5402827fe14e
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Fri Sep 4 12:39:22 2009 +0200
Fix a problem in brasero_video_tree_model_path_to_track () which returned the wrong BraseroTrack
src/brasero-video-tree-model.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/brasero-video-tree-model.c b/src/brasero-video-tree-model.c
index fb8cb11..da2f4ac 100644
--- a/src/brasero-video-tree-model.c
+++ b/src/brasero-video-tree-model.c
@@ -481,11 +481,12 @@ brasero_video_tree_model_path_to_track (BraseroVideoTreeModel *self,
index --;
- if (index <= 0)
- return BRASERO_TRACK (track);
+ if (brasero_track_stream_get_gap (track) > 0) {
+ if (index <= 0)
+ return BRASERO_TRACK (track);
- if (brasero_track_stream_get_gap (track) > 0)
- index --;
+ index --;
+ }
}
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]