Changeset 25484


Ignore:
Timestamp:
01/06/14 18:01:24 (9 years ago)
Author:
gost
Message:

[titan] marker jump.. better accuracy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/marker.h

    r25465 r25484  
    189189        ret = videogetpts(status.aktservice->videodev, &aktpts);
    190190        if(ret == 0)
     191        {
    191192                atime = (aktpts - startpos) / 90000;
     193                off64_t posn = playergetptspos(aktpts, pos, -1, 4, 2, 0, NULL);
     194                if(posn < -1)
     195                        posn = playergetptspos(aktpts, pos - (findpos1 *-1), -1, 4, 2, 0, NULL);
     196                if(posn < -1)
     197                        posn = playergetptspos(aktpts, pos - (findpos1 *-2), -1, 4, 2, 0, NULL);
     198                if(posn < -1)
     199                        posn = playergetptspos(aktpts, pos - (findpos1 *-3), -1, 4, 2, 0, NULL);
     200                if(posn > 0)
     201                        {
     202                                printf("marker-> new position found. OLD: %lld NEW: %lld\n", pos, posn);
     203                                pos = posn;
     204                        }
     205        }
    192206        else
    193207                atime = (atime - startpos) / 90000;
Note: See TracChangeset for help on using the changeset viewer.