Skip to content

Commit ef176f0

Browse files
committed
1.0.0.4
Set supported rates to 1000 (x1.0) as a default fallback.
1 parent ce7b336 commit ef176f0

14 files changed

+40
-9
lines changed

MFPlayer-x64/MFPlayer.asm

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1928,6 +1928,10 @@ MFPMediaPlayer_GetSupportedRates PROC FRAME USES RBX pMediaPlayer:QWORD, bForwar
19281928
mov rax, FALSE
19291929
ret
19301930
.ENDIF
1931+
1932+
mov dwSlowestRate, 1000
1933+
mov dwFastestRate, 1000
1934+
19311935
Invoke IMFPMediaPlayer_GetSupportedRates, pMediaPlayer, bForwardDirection, Addr fSlowestRate, Addr fFastestRate
19321936
.IF rax == S_OK
19331937
@@ -1957,6 +1961,17 @@ MFPMediaPlayer_GetSupportedRates PROC FRAME USES RBX pMediaPlayer:QWORD, bForwar
19571961
19581962
mov rax, TRUE
19591963
.ELSE
1964+
.IF pdwSlowestRate != 0
1965+
mov rbx, pdwSlowestRate
1966+
mov eax, dwSlowestRate
1967+
mov [rbx], eax
1968+
.ENDIF
1969+
.IF pdwFastestRate != 0
1970+
mov rbx, pdwFastestRate
1971+
mov eax, dwFastestRate
1972+
mov [rbx], eax
1973+
.ENDIF
1974+
19601975
mov rax, FALSE
19611976
.ENDIF
19621977
ret

MFPlayer-x64/MFPlayer.lib

56 Bytes
Binary file not shown.

MFPlayer-x64/MFPlayer.rap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ AutoLoad=2,1,6,3
6666
5=
6767
4=
6868
3=0,0,0,0,2336
69-
1=0,0,0,0,894
69+
1=0,0,0,0,80155
7070
7=0,0,0,0,0
7171
6=0,0,0,0,3992
7272
2=0,0,0,0,22566
@@ -94,7 +94,7 @@ MilestoneOnTime=2
9494
MilestoneOnDate=0
9595
MilestoneOnDateWhen=1
9696
MilestoneOnDateStatus=0
97-
MilestoneOnDateDate=13
97+
MilestoneOnDateDate=19
9898
MilestoneOnDateTimeYear=2024
9999
MilestoneOnDateTimeMonth=8
100100
MilestoneOnDateTimeDate=25
@@ -118,9 +118,9 @@ ProductVer2Range=0
118118
ProductVer3Range=0
119119
ProductVer4Range=0
120120
[PTimer]
121-
PTimer=39692159
121+
PTimer=39749175
122122
[Collapse]
123-
1=142879024,131072,,,536889636,613426322,245426690,1227133512,594468,1065252,71311945,266753,
123+
1=142879024,131072,,,536889636,613426322,245426690,1227133512,594468,4210980,285247780,1067012,
124124
3=
125125
7=
126126
6=

MFPlayer-x86/MFPlayer.asm

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1906,6 +1906,10 @@ MFPMediaPlayer_GetSupportedRates PROC USES EBX pMediaPlayer:DWORD, bForwardDirec
19061906
mov eax, FALSE
19071907
ret
19081908
.ENDIF
1909+
1910+
mov dwSlowestRate, 1000
1911+
mov dwFastestRate, 1000
1912+
19091913
Invoke IMFPMediaPlayer_GetSupportedRates, pMediaPlayer, bForwardDirection, Addr fSlowestRate, Addr fFastestRate
19101914
.IF eax == S_OK
19111915
@@ -1935,6 +1939,17 @@ MFPMediaPlayer_GetSupportedRates PROC USES EBX pMediaPlayer:DWORD, bForwardDirec
19351939
19361940
mov eax, TRUE
19371941
.ELSE
1942+
.IF pdwSlowestRate != 0
1943+
mov ebx, pdwSlowestRate
1944+
mov eax, dwSlowestRate
1945+
mov [ebx], eax
1946+
.ENDIF
1947+
.IF pdwFastestRate != 0
1948+
mov ebx, pdwFastestRate
1949+
mov eax, dwFastestRate
1950+
mov [ebx], eax
1951+
.ENDIF
1952+
19381953
mov eax, FALSE
19391954
.ENDIF
19401955
ret
@@ -4471,6 +4486,7 @@ MFPMediaItem_StreamTable PROC USES EBX EDX pMediaItem:DWORD, lpdwStreamCount:DWO
44714486
mov eax, dword ptr [ebx+4].PROPVARIANT.uint64Val
44724487
mov dwfps, eax
44734488
.ELSE
4489+
lea ebx, pvValue
44744490
mov eax, dword ptr [ebx+4].PROPVARIANT.uint64Val
44754491
mov ebx, dword ptr [ebx].PROPVARIANT.uint64Val
44764492
.IF eax == 0 || ebx == 0

MFPlayer-x86/MFPlayer.lib

32 Bytes
Binary file not shown.

MFPlayer-x86/MFPlayer.rap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ MilestoneOnTime=2
8989
MilestoneOnDate=0
9090
MilestoneOnDateWhen=1
9191
MilestoneOnDateStatus=0
92-
MilestoneOnDateDate=12
92+
MilestoneOnDateDate=19
9393
MilestoneOnDateTimeYear=2024
9494
MilestoneOnDateTimeMonth=8
9595
MilestoneOnDateTimeDate=8
@@ -113,9 +113,9 @@ ProductVer2Range=0
113113
ProductVer3Range=0
114114
ProductVer4Range=0
115115
[PTimer]
116-
PTimer=216497871
116+
PTimer=223469184
117117
[Collapse]
118-
1=71439519,72704,,4194816,302032576,981676893,1821526304,920350134,556420243,75530752,69337554,8432,
118+
1=71439519,72704,,4194816,302032576,981676893,1821526304,920350134,556420243,301990400,277350216,33728,
119119
2=
120120
3=
121121
4=
@@ -124,8 +124,8 @@ PTimer=216497871
124124
7=
125125
6=
126126
[Size]
127-
1=0,0,0,0,41132
128-
2=0,0,0,0,7374
127+
1=0,0,0,0,79785
128+
2=0,0,0,0,7428
129129
3=0,0,0,0,4011
130130
4=0,0,0,0,272
131131
5=0,0,0,0,2314
36.4 KB
Binary file not shown.

releases/MFPlayer-x64-source.zip

51 Bytes
Binary file not shown.

releases/MFPlayer-x64-v1.0.0.3.zip

20.8 KB
Binary file not shown.

releases/MFPlayer-x64.zip

49 Bytes
Binary file not shown.
38.6 KB
Binary file not shown.

releases/MFPlayer-x86-source.zip

31 Bytes
Binary file not shown.

releases/MFPlayer-x86-v1.0.0.3.zip

21.2 KB
Binary file not shown.

releases/MFPlayer-x86.zip

9 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)