osc: fix bug for no-duration cases

This commit is contained in:
ChrisK2 2013-10-26 11:08:06 +02:00
parent c54335e7df
commit e02ec80192
1 changed files with 1 additions and 1 deletions

View File

@ -958,7 +958,7 @@ function osc_init()
metainfo.slider.border = 1
metainfo.slider.gap = 1 -- >1 will draw triangle markers
metainfo.slider.type = "slider" -- "bar" for old bar-style filling
if (user_opts.seektooltip) then
if (user_opts.seektooltip) and (not (mp.property_get("length") == nil)) then
metainfo.slider.tooltipF = tooltipF
end