Merge lp:~voldyman/audience/fixed-999073-998706 into lp:~audience-members/audience/trunk

Proposed by Akshay Shekher
Status: Merged
Merged at revision: 202
Proposed branch: lp:~voldyman/audience/fixed-999073-998706
Merge into: lp:~audience-members/audience/trunk
Prerequisite: lp:~voldyman/audience/fixed-997957
Diff against target: 40 lines (+8/-7)
1 file modified
Audience/Audience.vala (+8/-7)
To merge this branch: bzr merge lp:~voldyman/audience/fixed-999073-998706
Reviewer Review Type Date Requested Status
Tom Beckmann Approve
Review via email: mp+115034@code.launchpad.net

Description of the change

fixed playlist bugs by adding play function

To post a comment you must log in.
Revision history for this message
Tom Beckmann (tombeckmann) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Audience/Audience.vala'
2--- Audience/Audience.vala 2012-07-15 18:27:18 +0000
3+++ Audience/Audience.vala 2012-07-15 18:27:18 +0000
4@@ -168,7 +168,8 @@
5 });
6 //playlist wants us to open a file
7 playlist.play.connect ( (file) => {
8- this.open_file (file.get_path ());
9+ this.current_file = file;
10+ this.play_file ();
11 });
12
13 //handle welcome
14@@ -751,20 +752,20 @@
15
16 if (this.current_file.query_file_type (0) == FileType.DIRECTORY) {
17 Audience.recurse_over_dir (this.current_file, (file_ret) => {
18- this.playlist.add_item (file_ret);
19- print (file_ret.get_uri ()+"\n");
20+ this.playlist.add_item (file_ret);
21 });
22 this.current_file = this.playlist.get_first_item ();
23 }
24 else {
25 this.playlist.add_item (this.current_file);
26 }
27-
28+ play_file ();
29+ }
30+
31+ public void play_file () {
32 this.reached_end = false;
33 debug ("Opening %s", this.current_file.get_uri ());
34- var uri = this.current_file.get_uri ();
35- if (dont_modify) //fixes dvd support
36- uri = filename;
37+ var uri = this.current_file.get_uri ();
38 canvas.uri = uri;
39 canvas.audio_volume = 1.0;
40 this.controls.slider.preview.uri = uri;

Subscribers

People subscribed via source and target branches