Skip to content

Commit

Permalink
Fix docsite generation for SbPlayer functions (#2905)
Browse files Browse the repository at this point in the history
Noticed that SbPlayerCreate and SbPlayerSeek functions were missing
from:

https://developers.google.com/youtube/cobalt/docs/reference/starboard/modules/player

turns out to be simply additional spaces in the comments.

b/333721484

(cherry picked from commit f364bc7)
  • Loading branch information
sideb0ard authored and anonymous1-me committed Apr 11, 2024
1 parent 533246c commit 4a28fce
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions starboard/player.h
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,6 @@ static SB_C_INLINE bool SbPlayerIsValid(SbPlayer player) {
// video will never adapt to resolution higher than 1920x1080 or frame per
// second higher than 15 fps. When the maximums are unknown, this will be set
// to NULL.

//
// |sample_deallocator_func|: If not |NULL|, the player calls this function
// on an internal thread to free the sample buffers passed into
Expand Down Expand Up @@ -419,7 +418,6 @@ static SB_C_INLINE bool SbPlayerIsValid(SbPlayer player) {
// If |NULL| is passed to any of the callbacks (|sample_deallocator_func|,
// |decoder_status_func|, |player_status_func|, or |player_error_func| if it
// applies), then |kSbPlayerInvalid| must be returned.

SB_EXPORT SbPlayer
SbPlayerCreate(SbWindow window,
const SbPlayerCreationParam* creation_param,
Expand Down Expand Up @@ -489,7 +487,6 @@ SB_EXPORT void SbPlayerDestroy(SbPlayer player);
// when SbPlayerSeek was called. To be very specific, once SbPlayerSeek has
// been called with ticket X, a client should ignore all
// |SbPlayerDecoderStatusFunc| calls that do not pass in ticket X.

#if SB_API_VERSION >= 15
SB_EXPORT void SbPlayerSeek(SbPlayer player,
SbTime seek_to_timestamp,
Expand Down

0 comments on commit 4a28fce

Please sign in to comment.