Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Igor Shevchenko
LibVLCSharp
Commits
000361a7
Commit
000361a7
authored
May 04, 2020
by
Igor Shevchenko
Browse files
Merge branch 'shevchenko_3.x' into '3.x'
Small changes See merge request
!1
parents
98a5243e
b0602957
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/LibVLCSharp.Tests/MediaPlayerTests.cs
View file @
000361a7
...
...
@@ -60,7 +60,7 @@ namespace LibVLCSharp.Tests
mp
.
Playing
+=
(
sender
,
args
)
=>
{
var
chapters
=
mp
.
FullChapterDescriptions
(-
1
);
Assert
.
IsNot
Null
(
chapters
);
Assert
.
IsNot
Empty
(
chapters
);
Assert
.
AreEqual
(
chapters
.
Length
,
mp
.
ChapterCount
);
tcs
.
SetResult
(
true
);
};
...
...
src/LibVLCSharp/Shared/MediaPlayer.cs
View file @
000361a7
...
...
@@ -1449,8 +1449,8 @@ namespace LibVLCSharp.Shared
/// </summary>
/// <param name="titleIndex">Index of the title to query for chapters (uses current title if set to -1)</param>
/// <returns>Array of chapter descriptions.</returns>
public
ChapterDescription
[]
FullChapterDescriptions
(
int
titleIndex
)
=>
MarshalUtils
.
Retrieve
(
NativeReference
,
(
IntPtr
nativeRef
,
out
IntPtr
array
)
=>
public
ChapterDescription
[]
FullChapterDescriptions
(
int
titleIndex
=
-
1
)
=>
MarshalUtils
.
Retrieve
(
NativeReference
,
(
IntPtr
nativeRef
,
out
IntPtr
array
)
=>
{
var
count
=
Native
.
LibVLCMediaPlayerGetFullChapterDescriptions
(
nativeRef
,
titleIndex
,
out
array
);
// the number of chapters (-1 on error)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment