Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
trx-ecpri
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
trx-ecpri
Commits
f602b253
Commit
f602b253
authored
Dec 26, 2024
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
836f330e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
trx_ecpri.c
trx_ecpri.c
+8
-3
No files found.
trx_ecpri.c
View file @
f602b253
...
...
@@ -427,13 +427,18 @@ static void *encode_thread(void *p) {
error
(
EXIT_FAILURE
,
errno
,
"Could not set CPU affinity to CPU %d
\n
"
,
s
->
encode_affinity
);
for
(
int64_t
i
=
0
;;
i
++
)
{
int64_t
n
;
int64_t
to_write
,
to_read
;
n
=
rbuf_write_amount
(
&
tx_rbuf
);
to_write
=
rbuf_write_amount
(
&
tx_rbuf
);
to_read
=
rbuf_read_amount
(
&
trxw_rbuf
[
0
]);
// If we have frames to encode (is there space in TX buffer)
// If there are frames from trx_write callback to encode
if
(
n
&&
rbuf_read_amount
(
&
trxw_rbuf
[
0
]))
{
if
(
to_write
&&
to_read
)
{
// TODO
int
nc
;
int
nf
=
nb_frames
;
...
...
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