Skip to content

Commit 8fb847d

Browse files
committed
Make the VideoPlayer track extensions public
1 parent 5418901 commit 8fb847d

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/Media/Xiph/Video.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@ public static Video FromUriEXT(Uri uri, GraphicsDevice graphicsDevice)
167167
return new Video(path, graphicsDevice);
168168
}
169169

170-
// FIXME: These should be in VideoPlayer instead!
171-
172170
internal int audioTrack = -1;
173171
internal int videoTrack = -1;
174172
internal VideoPlayer parent;

src/Media/Xiph/VideoPlayer.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -824,20 +824,19 @@ public void Resume()
824824

825825
#endregion
826826

827-
#region Internal Extensions
827+
#region Public Extensions
828828

829-
// FIXME: These should replace the Video extensions!
830829
// FIXME: Maybe store these to carry over to future videos?
831830

832-
internal void SetAudioTrackEXT(int track)
831+
public void SetAudioTrackEXT(int track)
833832
{
834833
if (theora != IntPtr.Zero)
835834
{
836835
Theorafile.tf_setaudiotrack(theora, track);
837836
}
838837
}
839838

840-
internal void SetVideoTrackEXT(int track)
839+
public void SetVideoTrackEXT(int track)
841840
{
842841
if (theora != IntPtr.Zero)
843842
{

0 commit comments

Comments
 (0)