Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 3 additions & 19 deletions android/app/lint-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,10 @@
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/openipc/decoder/Decoder.java"
line="802"
line="799"
column="18"/>
</issue>

<issue
id="SuspiciousIndentation"
message="Suspicious indentation: This is indented but is not nested under the previous expression (`if (listenerCb != nu`...)"
errorLine1=" s.setSoTimeout(0);"
errorLine2=" ~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/openipc/decoder/RtspClient.java"
line="303"
column="13"/>
<location
file="src/main/java/com/openipc/decoder/RtspClient.java"
line="301"
column="9"
message="Previous statement here"/>
</issue>

<issue
id="UnusedAttribute"
message="Attribute `usesCleartextTraffic` is only used in API level 23 and higher (current min is 21)"
Expand Down Expand Up @@ -156,7 +140,7 @@
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/openipc/decoder/Decoder.java"
line="419"
line="418"
column="28"/>
</issue>

Expand All @@ -167,7 +151,7 @@
errorLine2=" ~~~~~~~~~~~~~~">
<location
file="src/main/java/com/openipc/decoder/Decoder.java"
line="419"
line="418"
column="28"/>
</issue>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ void configure(AudioConfig audio) {
/** Called from the network thread to deliver an audio RTP packet. */
void onAudioFrame(Frame frame) {
byte[] data = frame.data();
int start = RtspClient.rtpHeaderLength(data, frame.length());
int start = RtspSession.rtpHeaderLength(data, frame.length());
if (start < 0) return;
int end = RtspClient.rtpPayloadEnd(data, frame.length());
int end = RtspSession.rtpPayloadEnd(data, frame.length());
if (end <= start) return;

AudioConfig c = config;
Expand Down
3 changes: 0 additions & 3 deletions android/app/src/main/java/com/openipc/decoder/Decoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ private void saveSettings() {

listenerGen++;
if (rtspClient != null) {
rtspClient.invalidateGen();
rtspClient.stop();
}
audioManager.closeAudio();
Expand Down Expand Up @@ -460,7 +459,6 @@ private void updateStatus(String status) {

private void startQuad() {
if (rtspClient != null) {
rtspClient.invalidateGen();
rtspClient.stop();
}
closeDecoder();
Expand Down Expand Up @@ -725,7 +723,6 @@ protected void onPause() {

listenerGen++;
if (rtspClient != null) {
rtspClient.invalidateGen();
rtspClient.stop();
}
if (executor != null) {
Expand Down
Loading
Loading