[haiku-commits] haiku: hrev44115 - src/apps/mediaplayer/playlist
- From: stpere@xxxxxxxxx
- To: haiku-commits@xxxxxxxxxxxxx
- Date: Sun, 6 May 2012 04:32:40 +0200 (CEST)
hrev44115 adds 1 changeset to branch 'master'
old head: d7f114cf1c1f73ebbf6f93f3a42e255f3c421431
new head: 501546ee8f87e93de7c6bad3eb0e977d6555ee7f
----------------------------------------------------------------------------
501546e: MediaPlayer: Looping regardless of setting
* Fixed a regression I introduced in hrev43642. Ticket #8364.
* Small coding style fix
[ Philippe Saint-Pierre <stpere@xxxxxxxxx> ]
----------------------------------------------------------------------------
Revision: hrev44115
Commit: 501546ee8f87e93de7c6bad3eb0e977d6555ee7f
URL: http://cgit.haiku-os.org/haiku/commit/?id=501546e
Author: Philippe Saint-Pierre <stpere@xxxxxxxxx>
Date: Sun May 6 02:28:58 2012 UTC
Ticket: https://dev.haiku-os.org/ticket/8364
----------------------------------------------------------------------------
1 file changed, 2 insertions(+), 1 deletion(-)
src/apps/mediaplayer/playlist/Playlist.cpp | 3 ++-
----------------------------------------------------------------------------
diff --git a/src/apps/mediaplayer/playlist/Playlist.cpp
b/src/apps/mediaplayer/playlist/Playlist.cpp
index 11f74c9..9707423 100644
--- a/src/apps/mediaplayer/playlist/Playlist.cpp
+++ b/src/apps/mediaplayer/playlist/Playlist.cpp
@@ -366,6 +366,7 @@ Playlist::SetCurrentItemIndex(int32 index, bool notify)
if (index >= CountItems()) {
index = CountItems() - 1;
result = false;
+ notify = false;
}
if (index < 0) {
index = -1;
@@ -457,7 +458,7 @@ Playlist::AppendRefs(const BMessage* refsReceivedMessage,
int32 appendIndex)
if (_IsQuery(type))
AppendQueryToPlaylist(ref, &subPlaylist);
else {
- if ( !ExtraMediaExists(this, ref) ) {
+ if (!ExtraMediaExists(this, ref)) {
AppendToPlaylistRecursive(ref,
&subPlaylist);
}
}
Other related posts:
- » [haiku-commits] haiku: hrev44115 - src/apps/mediaplayer/playlist - stpere