forked from KolibriOS/kolibrios
infinity: SetTimeBase now reset internal stream position
git-svn-id: svn://kolibrios.org@2694 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
6a4f6de77e
commit
ddf1ff4eea
@ -348,13 +348,21 @@ align 4
|
|||||||
cmp [edi+inp_size], 12
|
cmp [edi+inp_size], 12
|
||||||
jne .fail
|
jne .fail
|
||||||
|
|
||||||
mov eax, [ebx]
|
mov eax, [ebx+4]
|
||||||
mov ebx, [ebx+4]
|
mov ebx, [ebx+8]
|
||||||
|
|
||||||
|
pushfd
|
||||||
|
cli
|
||||||
mov dword [edx+STREAM.time_base], eax
|
mov dword [edx+STREAM.time_base], eax
|
||||||
mov dword [edx+STREAM.time_base+4], ebx
|
mov dword [edx+STREAM.time_base+4], ebx
|
||||||
xor eax, eax
|
xor eax, eax
|
||||||
|
mov dword [edx+STREAM.time_stamp], eax
|
||||||
|
mov dword [edx+STREAM.time_stamp+4], eax
|
||||||
|
popfd
|
||||||
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
align 4
|
||||||
.snd_gettimestamp:
|
.snd_gettimestamp:
|
||||||
cmp [edi+out_size], 8
|
cmp [edi+out_size], 8
|
||||||
jne .fail
|
jne .fail
|
||||||
@ -371,7 +379,10 @@ align 4
|
|||||||
|
|
||||||
mov eax, esp
|
mov eax, esp
|
||||||
|
|
||||||
|
push ebx
|
||||||
|
push ecx
|
||||||
push edx
|
push edx
|
||||||
|
push esi
|
||||||
push edi
|
push edi
|
||||||
|
|
||||||
push 4 ;.out_size
|
push 4 ;.out_size
|
||||||
@ -386,7 +397,10 @@ align 4
|
|||||||
add esp, 6*4
|
add esp, 6*4
|
||||||
|
|
||||||
pop edi
|
pop edi
|
||||||
|
pop esi
|
||||||
pop edx
|
pop edx
|
||||||
|
pop ecx
|
||||||
|
pop ebx
|
||||||
|
|
||||||
test eax, eax
|
test eax, eax
|
||||||
jz @F
|
jz @F
|
||||||
|
Loading…
Reference in New Issue
Block a user