G_TYPE_STRING
},
{
- "ID",
+ "TITLE",
G_TYPE_STRING
},
{
G_TYPE_STRING
},
{
- "TITLE",
+ "ID",
G_TYPE_STRING
},
{
0, "",
1, app->playlist.block_icons[app->playlist.item[i].type],
2, ch,
- 3, app->playlist.item[i].id,
+ 3, app->playlist.item[i].title,
4, frames2tc(app->playlist.item[i].in, 25.0, tc1),
5, frames2tc(app->playlist.item[i].dur, 25.0, tc2),
- 6, app->playlist.item[i].title,
+ 6, app->playlist.item[i].id,
7, i,
8, (app->playlist.item[i].error != 0),
9, (app->playlist.item[i].error & PLAYLIST_ITEM_ERROR_LIB)?"red":"orange",
0, "",
1, app->playlist.block_icons[app->playlist.item[i].type],
2, ch,
- 3, app->playlist.item[i].id,
+ 3, app->playlist.item[i].title,
4, frames2tc(app->playlist.item[i].in, 25.0, tc1),
5, frames2tc(app->playlist.item[i].dur, 25.0, tc2),
- 6, app->playlist.item[i].title,
+ 6, app->playlist.item[i].id,
7, i,
8, (app->playlist.item[i].error != 0),
9, (app->playlist.item[i].error & PLAYLIST_ITEM_ERROR_LIB)?"red":"orange",
filename2 = (char*)malloc(PATH_MAX);
strncpy(filename2, filename, PATH_MAX);
l = strlen(filename2);
- if(l < 4 || strcasecmp(filename2 + i - 4, procs[i].ext + 1))
+ if(l < 4 || strcasecmp(filename2 + l - 4, procs[i].ext + 1))
strcat(filename2, procs[i].ext + 1);
r = procs[i].load(app, filename2, error_message, sizeof(error_message));
filename2 = (char*)malloc(PATH_MAX);
strncpy(filename2, filename, PATH_MAX);
l = strlen(filename2);
- if(l < 4 || strcasecmp(filename2 + i - 4, procs[i].ext + 1))
+ if(l < 4 || strcasecmp(filename2 + l - 4, procs[i].ext + 1))
strcat(filename2, procs[i].ext + 1);
r = procs[i].save(app, filename2, error_message, sizeof(error_message));