Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Removed recurcive stop method from WaitingState. #211

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Just-MadDEN
Copy link

When PlayListController is in WaitingState and we are trying to play a clip via javascript like:

player.fp_play(clip_descriptor)

WaitingState.stop method is called, so execution context waits for infinite recursion to stop.

I can't say if this method was needed for some purposes, because I could not find change history in google code. At least, I did not find any direct calls to this method in code. So, I left it empty.

D.Martynov added 2 commits February 27, 2014 12:57
…ymous progressbar rendering function in controls plugin gets garbage collected.
@danrossi
Copy link
Contributor

This problem arose from some memory leak fixes when making such calls, it's in a different pull request already take a look at the danielr-197 branch.

@Just-MadDEN
Copy link
Author

Yep, danielr-197's variant looks better. Could you also comment the second commit?

@danrossi
Copy link
Contributor

Right. I had gone through all events in an attempt to cleanup any memory issues, I did notice making some of them weak would get garbage collected too early. With that one there was noway to stop the event listener so made it weak. Is it being cleaned up too early and affecting animations ?

@danrossi
Copy link
Contributor

Let me know how it's being affected and I'll what I can do. It looks like complete callback and update events.

@Just-MadDEN
Copy link
Author

Yes, update callback cleaned to early. The progress bar in scrubber stops when the scrubber stays displayed for some time. It looks like the problem is that the progress bar update callback is an anonymous function, so, it gets cleaned too early.

@danrossi
Copy link
Contributor

OK taking this back and let the GC deal with it.

@danrossi
Copy link
Contributor

#216 it's within this branch for now.

@danrossi
Copy link
Contributor

They both should be merged soon thanks it is an issue people are picking up ;(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants