Skip to content

Commit

Permalink
Fix Live TV playback stop not releasing tuner (#1295)
Browse files Browse the repository at this point in the history
Fix Live TV stop not releasing tuner
  • Loading branch information
VTRunner authored Feb 13, 2024
1 parent 814179b commit b606d2a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ class PlayerViewModel(application: Application) : AndroidViewModel(application),
itemId = mediaSource.itemId,
positionTicks = lastPositionTicks,
playSessionId = mediaSource.playSessionId,
liveStreamId = mediaSource.liveStreamId,
failed = false,
),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class JellyfinMediaSource(
val item: BaseItemDto?,
val sourceInfo: MediaSourceInfo,
val playSessionId: String,
val liveStreamId: String?,
val maxStreamingBitrate: Int?,
private var startTimeTicks: Long? = null,
audioStreamIndex: Int? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class MediaSourceResolver(private val apiClient: ApiClient) {
item = item,
sourceInfo = mediaSourceInfo,
playSessionId = playSessionId,
liveStreamId = mediaSourceInfo.liveStreamId,
maxStreamingBitrate = maxStreamingBitrate,
startTimeTicks = startTimeTicks,
audioStreamIndex = audioStreamIndex,
Expand Down

0 comments on commit b606d2a

Please sign in to comment.