Changeset 25645


Ignore:
Timestamp:
01/13/14 19:44:29 (9 years ago)
Author:
gost
Message:

[titan] add marker autoseek

Location:
titan/titan
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/marker.h

    r25644 r25645  
    418418                }
    419419        }
    420         sleep(2);
     420       
    421421        ret = playergetinfots(&len, &startpos, NULL, &hpos, NULL, 0);
    422422       
    423         while (status.playspeed != 0 || status.play != 0 || status.pause != 0)
     423        while ((status.playspeed != 0 || status.play != 0 || status.pause != 0) && status.autoseek == 1)
    424424        {
    425425                ret = videogetpts(status.aktservice->videodev, &pts);
     
    457457                seeker = seekerarb;
    458458        }
     459        status.autoseek = 0;
    459460}
    460461
  • titan/titan/play.h

    r25589 r25645  
    15991599                                if(rcret == getrcconfigint("rc5", NULL))
    16001600                                        screenmarker(file, showname, &playinfobarstatus, &playinfobarcount, playertype, flag);
    1601 
     1601                               
     1602                                if(rcret == getrcconfigint("rcmenu", NULL)) {
     1603                                        if(status.autoseek == 0) {
     1604                                                status.autoseek = 1;
     1605                                                textbox(_("Message"), _("Marker autoseek is started"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 10, 0);
     1606                                                addtimer(&markerautoseek_thread, START, 10000, 1, NULL, NULL, NULL);
     1607                                        }
     1608                                        else {
     1609                                                status.autoseek = 0;
     1610                                                textbox(_("Message"), _("Marker autoseek is stopped"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 10, 0);
     1611                                        }
     1612                                }
    16021613                        }
    16031614                        //don't change this sleep, without this
  • titan/titan/player.h

    r25493 r25645  
    112112                        free(fileseek); fileseek = NULL;
    113113                }       
     114               
     115                status.autoseek = 0;
    114116               
    115117                if(flag == 0)
  • titan/titan/struct.h

    r25138 r25645  
    14871487        //count for drawing screen
    14881488        unsigned int drawscreencount;
     1489        int autoseek;
    14891490} status;
    14901491
Note: See TracChangeset for help on using the changeset viewer.