2011-08-31, 21:08
Well I don't know python at all, but I just recreated that section of the code on a box and it hangs on "fifo = open(filename, 'w')"
My guess is open(filename, 'w') fails on a fifo. It doesn't look like you're using the file object you make there anyway. I'll try commenting out the open( command and see if it works. I don't think you need to open it for writing since mlbhls will do that anyway, but I could be wrong.
EDIT:
http://www.velocityreviews.com/forums/t3...nging.html
So there we go... opening the file for writing hangs until something opens it for reading. If you don't open it for writing at the line "fifo = open(..." then mlbhls should run in its own thread, open it for writing and the play( command will open it for reading which should make mlbhls start pumping.
My guess is if you open it with mplayer that fifo = open(... line will finish and then mlbhls will start immediately after that which makes it play, but then xbmc tries to open it and fails because it's already open.
My guess is open(filename, 'w') fails on a fifo. It doesn't look like you're using the file object you make there anyway. I'll try commenting out the open( command and see if it works. I don't think you need to open it for writing since mlbhls will do that anyway, but I could be wrong.
EDIT:
http://www.velocityreviews.com/forums/t3...nging.html
So there we go... opening the file for writing hangs until something opens it for reading. If you don't open it for writing at the line "fifo = open(..." then mlbhls should run in its own thread, open it for writing and the play( command will open it for reading which should make mlbhls start pumping.
My guess is if you open it with mplayer that fifo = open(... line will finish and then mlbhls will start immediately after that which makes it play, but then xbmc tries to open it and fails because it's already open.