Changeset 24150 for titan


Ignore:
Timestamp:
10/08/13 23:37:58 (11 years ago)
Author:
nit
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/subtitle.h

    r24149 r24150  
    14881488}
    14891489
    1490 int subtitlestart(struct subtitle* node)
     1490//flag 0: start normal
     1491//flag 1: start in pause
     1492int subtitlestart(struct subtitle* node, int flag)
    14911493{
    14921494        int ret;
     
    14981500        }
    14991501
    1500         status.subthreadaktion = START;
     1502        if(flag == 0)
     1503                status.subthreadaktion = START;
     1504        else
     1505                status.subthreadaktion = PAUSE;
     1506       
    15011507        pthread_attr_destroy(&status.subthreadattr);
    15021508        pthread_attr_init(&status.subthreadattr);
     
    16581664                                                clearscreen(subtitle);
    16591665                                                drawscreen(skin, 0, 0);
    1660                                                 if(subtitlestart((struct subtitle*)listbox->select->handle) == 0)
     1666                                                if(subtitlestart((struct subtitle*)listbox->select->handle, 0) == 0)
    16611667                                                {
    16621668                                                        status.subthreadpid = ((struct subtitle*)listbox->select->handle)->pid;
     
    18331839                        if(node != NULL)
    18341840                        {
    1835                                 if(subtitlestart(node) == 0)
    1836                                 {
    1837                                         status.subthreadaktion = PAUSE;
     1841                                if(subtitlestart(node, 1) == 0)
     1842                                {
    18381843                                        status.subthreadpid = node->pid;
    18391844                                        status.subthreadid2 = node->id2;
Note: See TracChangeset for help on using the changeset viewer.