Skip to content

Commit 7635b39

Browse files
authored
Merge pull request #461 from kumaryu/feature/htmlui/video-player
HTML UI上でHLS再生をするプレイヤーを表示できるようにする
2 parents d4ebb74 + b664503 commit 7635b39

20 files changed

+1239
-594
lines changed

PeerCastStation/PeerCastStation.Core/Channel.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ private class ChannelSinkSubscription
191191
{
192192
public readonly Channel Channel;
193193
public readonly IChannelSink Sink;
194+
private bool disposed = false;
194195

195196
public ChannelSinkSubscription(Channel channel, IChannelSink sink)
196197
{
@@ -200,7 +201,10 @@ public ChannelSinkSubscription(Channel channel, IChannelSink sink)
200201

201202
public void Dispose()
202203
{
203-
Channel.RemoveOutputStream(Sink);
204+
if (!disposed) {
205+
disposed = true;
206+
Channel.RemoveOutputStream(Sink);
207+
}
204208
}
205209
}
206210

0 commit comments

Comments
 (0)