projects
/
omnplay
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
af72d97
)
fix prev item block type update
author
Maksym Veremeyenko
<verem@m1stereo.tv>
Tue, 21 Jun 2011 15:49:49 +0000 (18:49 +0300)
committer
Maksym Veremeyenko
<verem@m1stereo.tv>
Tue, 21 Jun 2011 15:49:49 +0000 (18:49 +0300)
src/omnplay.cpp
patch
|
blob
|
history
diff --git
a/src/omnplay.cpp
b/src/omnplay.cpp
index
bd5b46d
..
a58b8ee
100644
(file)
--- a/
src/omnplay.cpp
+++ b/
src/omnplay.cpp
@@
-428,7
+428,7
@@
static void omnplay_playlist_delete_items(omnplay_instance_t* app, int* idxs, in
idx = idxs[j] - j;
/* fix block types */
- if(!idx)
+ if(idx)
app->playlist.item[idx - 1].type = (playlist_item_type_t)(app->playlist.item[idx - 1].type |
OMNPLAY_PLAYLIST_BLOCK_END);
if(idx + 1 < app->playlist.count)
@@
-814,7
+814,7
@@
static void omnplay_playlist_item_swap(omnplay_instance_t* app, int dir)
omnplay_playlist_draw_item(app, b);
/* fix block types */
- if(!a)
+ if(a)
{
app->playlist.item[a - 1].type = (playlist_item_type_t)(app->playlist.item[a - 1].type |
OMNPLAY_PLAYLIST_BLOCK_END);