python-omxplayer-wrapper icon indicating copy to clipboard operation
python-omxplayer-wrapper copied to clipboard

player.pause() --> Type Error: 'bool' object is not callable

Open himijendrix24 opened this issue 5 years ago • 2 comments

There seems to be a problem with the pause function (line 524) which also makes the load function (line 228) not working with the pause argument. So somewehere the classses pause() function gets replaced by a boolean, but I can't find the problem in the code.

himijendrix24 avatar Feb 11 '20 12:02 himijendrix24

I think calling self.load(source, pause=pause) in line 154 should be self.load(source, pause)

himijendrix24 avatar Feb 11 '20 12:02 himijendrix24

I think calling self.load(source, pause=pause) in line 154 should be self.load(source, pause)

I don't think that would solve things, they would (with the current load method) be essentially be identical (pause=pause indicates to put the pause variable from the constructor and and assign it to the pause parameter of the load method, which also happens when you just pass it as the second argument).

Do you have a full backtrace of your exception?

matthijskooijman avatar Feb 14 '20 21:02 matthijskooijman