Skip to content

Commit

Permalink
FIXME: seek to be able to change internal subtitle track
Browse files Browse the repository at this point in the history
  • Loading branch information
courville committed May 11, 2024
1 parent a814233 commit b6593e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Source/stream_subtitle.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,12 @@ serprintf("SsS: sub_stream already set\n");
thread_state_set( &s->sub_tstate, THREAD_RUNNING );

stream_un_pause( s, was_paused );


// FIXME: there should be a better way without seek jumping
int current_time = stream_get_current_time( s, NULL );
// reseek to current time to get internal subtitle decoder to reinitialize
stream_seek_time( s, current_time - 1, STREAM_SEEK_BACKWARD, 0 );

return 0;
}

Expand Down

0 comments on commit b6593e8

Please sign in to comment.