Fix audio track similar comparison for IDs.
This commit is contained in:
parent
6d59cdbe3a
commit
30909da1df
1 changed files with 3 additions and 1 deletions
|
@ -25,6 +25,7 @@ import org.schabi.newpipe.extractor.services.youtube.ItagItem;
|
|||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.Objects;
|
||||
|
||||
public final class AudioStream extends Stream {
|
||||
public static final int UNKNOWN_BITRATE = -1;
|
||||
|
@ -314,7 +315,8 @@ public final class AudioStream extends Stream {
|
|||
@Override
|
||||
public boolean equalStats(final Stream cmp) {
|
||||
return super.equalStats(cmp) && cmp instanceof AudioStream
|
||||
&& averageBitrate == ((AudioStream) cmp).averageBitrate;
|
||||
&& averageBitrate == ((AudioStream) cmp).averageBitrate
|
||||
&& Objects.equals(audioTrackId, ((AudioStream) cmp).audioTrackId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue