home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
did I spot bug ?.
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="te3hpurp" data-source="post: 638479" data-attributes="member: 82806"><p>Hi.</p><p></p><p>I was wondering why some videos hanged every now and then, I need to restart</p><p>Mp lient in order to survive. It locks up Directx totally. Nothing could be played when it happens.</p><p></p><p>Last line in log is from OnlineVideosPlayer.cs</p><p></p><p>IBaseFilter sourceFilter = DirectShowUtil.AddFilterToGraph(graphBuilder, "File Source (URL)");</p><p></p><p>After that I think is the dangerous part.</p><p></p><p>new Thread(MonitorBufferProgress) { IsBackground = true, Name = "MonitorBufferProgress" }.Start();</p><p>while (PercentageBuffered < OnlineVideoSettings.Instance.playbuffer) Thread.Sleep(50);</p><p></p><p></p><p>If MonitorBufferProgress does not upgrade PercentageBuffered, or Thread gets otherwise messed, then there is a possibility for infinity-loop. I think that's happening for me quite regulary.</p><p></p><p>There should be some some monitoring of MonitorBufferProgress thread and/or break that while loop, saying for example cannot retrieve data.</p><p></p><p>Br,</p></blockquote><p></p>
[QUOTE="te3hpurp, post: 638479, member: 82806"] Hi. I was wondering why some videos hanged every now and then, I need to restart Mp lient in order to survive. It locks up Directx totally. Nothing could be played when it happens. Last line in log is from OnlineVideosPlayer.cs IBaseFilter sourceFilter = DirectShowUtil.AddFilterToGraph(graphBuilder, "File Source (URL)"); After that I think is the dangerous part. new Thread(MonitorBufferProgress) { IsBackground = true, Name = "MonitorBufferProgress" }.Start(); while (PercentageBuffered < OnlineVideoSettings.Instance.playbuffer) Thread.Sleep(50); If MonitorBufferProgress does not upgrade PercentageBuffered, or Thread gets otherwise messed, then there is a possibility for infinity-loop. I think that's happening for me quite regulary. There should be some some monitoring of MonitorBufferProgress thread and/or break that while loop, saying for example cannot retrieve data. Br, [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
did I spot bug ?.
Contact us
RSS
Top
Bottom