static int Set(player_base* p, int No, const void* Data, int Size)
{
…………
case PLAYER_PLAY:
if (Size == sizeof(bool_t))
{
if (*(bool_t*)Data)
{
if (!p->Format && p->Wnd && p->PlayListCount)
{
if (Load(p,0,0,0) == ERR_FILE_NOT_FOUND)
NextPrev(p,1,1,1);
}
if (!p->Format)
{
Result = ERR_INVALID_DATA;
break;
}
引用 3 楼 jinlking 的回复:
static int Set(player_base* p, int No, const void* Data, int Size)
{
…………
case PLAYER_PLAY:
if (Size == sizeof(bool_t))
{
if (*(bool_t*)Data)
{
if (!p->Format && p->Wnd && p->PlayListCount)
{
if (Load(p,0,0,0) == ERR_FILE_NOT_FOUND)
NextPrev(p,1,1,1);
}
if (!p->Format)
{
Result = ERR_INVALID_DATA;
break;
}