Skip to content

Commit

Permalink
Moved the MediaTrackService doc block from ctor to class
Browse files Browse the repository at this point in the history
Also took the liberty to change the initialization debug writeline to
mention the MediaTrackService.

Co-authored-by: Johannes Kauffmann <[email protected]>
  • Loading branch information
TimGels and JohannesKauffmann committed Mar 12, 2023
1 parent 3f4a80e commit e9fd737
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions OneDrive-Cloud-Player/Services/MediaTrackService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@

namespace OneDrive_Cloud_Player.Services
{
/// <summary>
/// Manage the media tracks of the libvlcsharp media player instance.
/// </summary>
public class MediaTrackService : IMediaTrackService
{
private MediaPlayer _mediaPlayer;
private bool _isInitialized = false;
private readonly ApplicationDataContainer _userSettings;

/// <summary>
/// Manage the media tracks of the libvlcsharp media player instance.
/// </summary>
public MediaTrackService()
{
_userSettings = ApplicationData.Current.LocalSettings;
Expand All @@ -28,7 +28,7 @@ public MediaTrackService()
/// </summary>
public IMediaTrackService Initialize(ref MediaPlayer mediaPlayer)
{
Debug.WriteLine("initializing service");
Debug.WriteLine("initializing MediaTrackService");
_mediaPlayer = mediaPlayer;
_isInitialized = true;
return this;
Expand All @@ -53,7 +53,7 @@ private void CheckInitializationState()
public TrackDescription GetPreferredSubtitleTrack()
{
CheckInitializationState();

//Enable or disable default subtitle based on user setting.
if (!(bool)_userSettings.Values["ShowDefaultSubtitles"])
{
Expand Down

0 comments on commit e9fd737

Please sign in to comment.