-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash if start/stop continous #38
Comments
player.Stop() requires re-opening. You use Stop as Pause? Do you get the error when you first time click Stop? |
@pubpy2015 You and your rtsp mess :) You try to Stop before it actually opened. that's the issue... I knew that some locks are required during open/stop/dispose etc... I guess I will add them |
I guess that was it, let me know if otherwise. I've not finished with locks yet, because I was planning to update Player.cs and Plugins but nice catch. I will need to come back on this one as Stop should ideally cancel previous Open for faster Stop. |
One more thing. It's your responsibility to Stop the Player before Open. So generally, consider doing player.Stop(); also on your button1 |
Did you try to Stop before Open at button1? |
What exactly are you doing? Pressing Open/Stop buttons all the time? I mean is this a real scenario or you just try hard to crash it? |
OK I think I've fixed the whole pyramid there of Start/Stop with also fast abort of opening |
My first problem is that I cannot easily test this. The second problem is that I still believe that it's not the proper way of doing this. However, give it a try but consider finding a better way of implementing this? |
@pubpy2015 Do you still have issues with this one, I will re-code some parts on version 3.2 (unfortunately not time for that currently). |
What do you mean 'if rtsp source is ready' ? |
What do you mean 'if rtsp source is ready' ? The resize issue is for the designer only right? |
Add below code in Flyleaf user control constructor will fix this problem: |
Nice, sorry but didn't have time lately to help you out with this one. I will included it on the next update (I will review general start/stop and memory leaks) |
Give another try with the latest version (3.1.9) and let me know if you still catch any crash! |
Nice should be also fixed |
Hi,
I am test on WinForms Sample (Basic) by Add a button for player.Open(rtsp url) and a button on for player.Stop():
The text was updated successfully, but these errors were encountered: