From: Maksym Veremeyenko Date: Thu, 30 Jun 2011 11:23:11 +0000 (+0300) Subject: fix channel id display for multichannel conf X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=f70e13153fe6a97e6db50ab44eb313b351cdd782;p=omnplay fix channel id display for multichannel conf --- diff --git a/src/playlist.c b/src/playlist.c index b2513db..8edae98 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -271,12 +271,16 @@ void omnplay_playlist_draw(omnplay_instance_t* app) for(i = 0;i < app->playlist.count; i++) { + char ch[3]; + + snprintf(ch, sizeof(ch), "%c", 'A' + app->playlist.item[i].player); + gtk_list_store_append(list_store, &iter); gtk_list_store_set(list_store, &iter, 0, "", 1, app->playlist.block_icons[app->playlist.item[i].type], - 2, (0 == app->playlist.item[i].player)?"A":"B", + 2, ch, 3, app->playlist.item[i].id, 4, frames2tc(app->playlist.item[i].in, 25.0, tc1), 5, frames2tc(app->playlist.item[i].dur, 25.0, tc2),