Skip to content

Commit

Permalink
fix NPE on slave adding
Browse files Browse the repository at this point in the history
  • Loading branch information
SrRapero720 committed Oct 26, 2024
1 parent b3ad5ac commit ee3f0fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ public void start(URI url, String[] vlcArgs) {
ThreadTool.thread(4, () -> {
if (rpa(url)) {
if (audioUrl != null) {
raw.mediaPlayer().media().slaves().add(MediaSlaveType.AUDIO, MediaSlavePriority.HIGHEST, audioUrl.toString());
raw.mediaPlayer().media().prepare(this.url, vlcArgs);
raw.mediaPlayer().media().slaves().add(MediaSlaveType.AUDIO, MediaSlavePriority.HIGHEST, audioUrl.toString());
raw.mediaPlayer().controls().start();
} else {
raw.mediaPlayer().media().start(this.url, vlcArgs);
Expand Down

0 comments on commit ee3f0fa

Please sign in to comment.