Fix percent-pos property

The 'percent-pos' property has to be float. Trying to retrieve this property was raising an exception, because e.g. 'int("0.0000")' raises a ValueError.
This commit is contained in:
Frechdachs 2016-02-12 12:36:18 +01:00 committed by jaseg
parent 5605380fcb
commit ee8316a282
1 changed files with 1 additions and 1 deletions

2
mpv.py
View File

@ -525,7 +525,7 @@ ALL_PROPERTIES = {
'avsync': (float, 'r'),
'total-avsync-change': (float, 'r'),
'drop-frame-count': (int, 'r'),
'percent-pos': (int, 'rw'),
'percent-pos': (float, 'rw'),
'ratio-pos': (float, 'rw'),
'time-pos': (float, 'rw'),
'time-start': (float, 'r'),