Skip to content

Commit

Permalink
add logger for broken slaves
Browse files Browse the repository at this point in the history
  • Loading branch information
SrRapero720 committed Aug 11, 2024
1 parent 9009653 commit 35b80ca
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ public void startPaused(CharSequence url, String[] vlcArgs) {
if (rpa(url)) {
if (audioUrl != null) {
raw.mediaPlayer().media().prepare(this.url, vlcArgs);
raw.mediaPlayer().media().slaves().add(MediaSlaveType.AUDIO, MediaSlavePriority.HIGHEST, audioUrl.toString());
if (!raw.mediaPlayer().media().slaves().add(MediaSlaveType.AUDIO, MediaSlavePriority.HIGHEST, audioUrl.toString())) {
LOGGER.warn(IT, "Failed to add audio slave {} for {}", audioUrl.toString(), this.url.toString());
}
raw.mediaPlayer().controls().start();
} else {
raw.mediaPlayer().media().start(this.url, vlcArgs);
Expand Down

0 comments on commit 35b80ca

Please sign in to comment.