MediaPlayer: Fix randomizer command typos
Change-Id: I6e136477dd6b74c2f877756451b94779d02f8ff8 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3557 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
@@ -24,7 +24,7 @@ using std::nothrow;
|
|||||||
|
|
||||||
|
|
||||||
RandomizePLItemsCommand::RandomizePLItemsCommand(Playlist* playlist,
|
RandomizePLItemsCommand::RandomizePLItemsCommand(Playlist* playlist,
|
||||||
const int32* indices, int32 count)
|
BList indices)
|
||||||
:
|
:
|
||||||
PLItemsCommand(),
|
PLItemsCommand(),
|
||||||
fPlaylist(playlist),
|
fPlaylist(playlist),
|
||||||
@@ -46,7 +46,7 @@ RandomizePLItemsCommand::RandomizePLItemsCommand(Playlist* playlist,
|
|||||||
// put the available indices into a "set"
|
// put the available indices into a "set"
|
||||||
BList indexSet;
|
BList indexSet;
|
||||||
for (int32 i = 0; i < fCount; i++) {
|
for (int32 i = 0; i < fCount; i++) {
|
||||||
fIndices[i] = (int32)(addr_t)indices.ItemAt(i);
|
fListIndices[i] = (int32)(addr_t)indices.ItemAt(i);
|
||||||
fItems[i] = fPlaylist->ItemAt(fListIndices[i]);
|
fItems[i] = fPlaylist->ItemAt(fListIndices[i]);
|
||||||
if (fItems[i] == NULL || !indexSet.AddItem((void*)(addr_t)i)) {
|
if (fItems[i] == NULL || !indexSet.AddItem((void*)(addr_t)i)) {
|
||||||
// indicate a bad object state
|
// indicate a bad object state
|
||||||
|
|||||||
Reference in New Issue
Block a user