From: Maksym Veremeyenko Date: Thu, 30 Jun 2011 12:34:38 +0000 (+0300) Subject: display channel for first event in a block X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=90d47169af231ca20a49584cae0e1f5fa6f93a9e;p=omnplay display channel for first event in a block --- diff --git a/src/playlist.c b/src/playlist.c index 59af44e..1b136c6 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -273,7 +273,10 @@ void omnplay_playlist_draw(omnplay_instance_t* app) { char ch[3]; - snprintf(ch, sizeof(ch), "%c", 'A' + app->playlist.item[i].player); + if(OMNPLAY_PLAYLIST_BLOCK_BEGIN & app->playlist.item[i].type) + snprintf(ch, sizeof(ch), "%c", 'A' + app->playlist.item[i].player); + else + ch[0] = 0; gtk_list_store_append(list_store, &iter); @@ -330,7 +333,10 @@ static gboolean omnplay_playlist_draw_item_proc( if(i != item->idx) return FALSE; - snprintf(ch, sizeof(ch), "%c", 'A' + app->playlist.item[i].player); + if(OMNPLAY_PLAYLIST_BLOCK_BEGIN & app->playlist.item[i].type) + snprintf(ch, sizeof(ch), "%c", 'A' + app->playlist.item[i].player); + else + ch[0] = 0; gtk_list_store_set(item->list_store, iter, 0, "",