willprice / python-omxplayer-wrapper

:tv: Control OMXPlayer, the Raspberry Pi media player, from Python
http://python-omxplayer-wrapper.readthedocs.io
GNU Lesser General Public License v3.0
253 stars 72 forks source link

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

Open himijendrix24 opened 4 years ago

himijendrix24 commented 4 years ago

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 commented 4 years ago

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

matthijskooijman commented 4 years ago

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?