subed
                                
                                
                                
                                    subed copied to clipboard
                            
                            
                            
                        High CPU load when playing through long gap between subtitles
How To Reproduce
- 
Place point on a subtitle that doesn't have a following subtitle for a few minutes.
 - 
M-x subed-enable-sync-point-to-player - 
Let the video play.
 - 
After a while (tens of seconds in my case), CPU load on a single core spikes to 100%. Eventually, video playback becomes choppy and Emacs takes several seconds to respond to user input.
 
What I Know
The relevant code seems to be in subed-srt--subtitle-id-at-msecs, specifically
in the final (catch 'subtitle-id ...).  If I comment that out, the issue goes
away, but I don't understand what's wrong with the code or how to investigate
further.