mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-12-22 13:49:48 +00:00
Fix display caption loading track: event based now
This commit is contained in:
parent
1a08795a6b
commit
24b0b24ad9
@ -65,11 +65,10 @@ def osd_observer(_name, value):
|
|||||||
print_there(0, 0, '\r'+osd_string[:term_len])
|
print_there(0, 0, '\r'+osd_string[:term_len])
|
||||||
|
|
||||||
|
|
||||||
@player.property_observer('stream-open-filename')
|
@player.event_callback('start-file')
|
||||||
@logger.catch
|
@logger.catch
|
||||||
def waiting_load_observer(_name, value):
|
def starting_file_handler(value):
|
||||||
'''just show loading state'''
|
'''just show loading state'''
|
||||||
if value and player.core_idle:
|
|
||||||
print_there(0, 0, '\rLoading track...')
|
print_there(0, 0, '\rLoading track...')
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user