andyrooger / totem-get-iplayer

Totem plugin to act as a front-end to get_iplayer. Allows streaming and recording iPlayer and other content.
GNU General Public License v3.0
1 stars 0 forks source link

Cannot play anything after first error #52

Closed andyrooger closed 11 years ago

andyrooger commented 11 years ago

Try to play a programme when not connected to the net. You should see an error appear about not able to get pid. You should also see one about no data in stream.

From here on, until you restart totem, every programme you play will give the no data in stream error.

andyrooger commented 11 years ago

Appears to be because we need to completely close the stream in totem after we close it with os.close. Streaming will be done before programmes finish playing. Don't think we get an event to signal play completion, so can't close at the correct time. Maybe better not to close the stream at all?

andyrooger commented 11 years ago

Above is incorrect. In fact, there is a race condition in the code from #29 that means playing a stream whilst anything else is already playing will result in the new stream being closed (we are supposed to close the stream running before this)