Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ESP32-audioI2S
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ESP32-audioI2S
Commits
67264b7e
Unverified
Commit
67264b7e
authored
Aug 23, 2022
by
Wolle
Committed by
GitHub
Aug 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix packets lost in HLS-TS #334
parent
89527d45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
src/Audio.cpp
src/Audio.cpp
+6
-4
src/Audio.h
src/Audio.h
+1
-1
No files found.
src/Audio.cpp
View file @
67264b7e
...
...
@@ -3,8 +3,8 @@
*
* Created on: Oct 26.2018
*
* Version 2.0.5
j
* Updated on: Aug 2
1
.2022
* Version 2.0.5
k
* Updated on: Aug 2
3
.2022
* Author: Wolle (schreibfaul1)
*
*/
...
...
@@ -309,6 +309,7 @@ void Audio::setDefaults() {
clientsecure
.
flush
();
_client
=
static_cast
<
WiFiClient
*>
(
&
client
);
/* default to *something* so that no NULL deref can happen */
playI2Sremains
();
ts_parsePacket
(
0
,
0
,
0
);
// reset ts routine
AUDIO_INFO
(
"buffers freed, free Heap: %u bytes"
,
ESP
.
getFreeHeap
());
...
...
@@ -3154,7 +3155,6 @@ void Audio::processWebStreamTS() {
tmr_1s
=
millis
();
m_t0
=
millis
();
ts_packetPtr
=
0
;
ts_parsePacket
(
0
,
0
,
0
);
// reset ts routine
m_controlCounter
=
0
;
m_f_firstCall
=
false
;
}
...
...
@@ -4814,7 +4814,9 @@ bool Audio::ts_parsePacket(uint8_t* packet, uint8_t* packetStart, uint8_t* packe
*
packetLength
=
0
;
return
true
;
}
if
(
m_f_Log
)
log_e
(
"invalid ts packet!"
);
// PES received before PAT and PMT seen
*
packetStart
=
0
;
*
packetLength
=
0
;
return
false
;
}
//----------------------------------------------------------------------------------------------------------------------
...
...
src/Audio.h
View file @
67264b7e
...
...
@@ -2,7 +2,7 @@
* Audio.h
*
* Created on: Oct 28,2018
* Updated on: Aug 2
1
,2022
* Updated on: Aug 2
3
,2022
* Author: Wolle (schreibfaul1)
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment