コード例 #1
0
ファイル: mediainfo.c プロジェクト: Erikhht/TCPMP
static void Comment(win* Win,player* Player,winunit* y,int Stream)
{
	tchar_t s[256];
	int i;

	for (i=0;CommentNo[i];++i)
		if (Player->CommentByName(Player,Stream,PlayerComment(CommentNo[i]),s,TSIZEOF(s)))
		{
			if (Stream>=0 && Player->CommentByName(Player,-1,PlayerComment(CommentNo[i]),NULL,0))
				continue;

			WinPropLabel(Win,y,LangStr(PLAYER_ID,CommentNo[i]),s);
		}

	if (Stream>=0)
		for (++i;CommentNo[i];++i)
			if (Player->CommentByName(Player,Stream,PlayerComment(CommentNo[i]),s,TSIZEOF(s)))
				WinPropLabel(Win,y,LangStr(PLAYER_ID,CommentNo[i]),s);
}
コード例 #2
0
ファイル: id3tag.c プロジェクト: BigHNF/tcpmp-revive
static NOINLINE void GetFrameName(int Id,tchar_t* Out,int OutLen)
{
	tcscpy_s(Out,OutLen,PlayerComment(Id));
	tcscat_s(Out,OutLen,T("="));
}