joelamos / SourceRadio

Stream music from YouTube while playing games on Steam
http://steamcommunity.com/groups/source-radio
GNU General Public License v3.0
10 stars 0 forks source link

Stream does not support seeking #8

Open joelamos opened 7 years ago

joelamos commented 7 years ago

Several users have reported this error:

Unhandled Exception: System.NotSupportedException: Stream does not support seeking.
   at System.IO.BufferedStream.get_Position()
   at CSCore.Tags.ID3.ID3v2.SkipTag(Stream stream)
   at CSCore.Codecs.MP3.DmoMp3Decoder.ParseForMp3Frames(Stream stream, Boolean enableSeeking)
   at CSCore.Codecs.MP3.DmoMp3Decoder..ctor(Stream stream, Boolean enableSeeking)
   at CSCore.Codecs.MP3.Mp3WebStream.BufferProc(Object o)
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart(Object obj)

There's no way for me to directly fix this, as the source of the error resides in a third-party library. The fix will come when CSCore 1.2 is released.

joelamos commented 7 years ago

CSCore 1.2 has been released, so this bug should now be fixable. Note that I have yet to incorporate this into SourceRadio, but I will do so soon.