Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mediastreamer2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
mediastreamer2
Commits
8b691f60
Commit
8b691f60
authored
Feb 09, 2011
by
Simon Morlat
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.linphone.org:mediastreamer2
parents
6bb66064
0c80402a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
NEWS
NEWS
+1
-1
Makefile.am
src/Makefile.am
+2
-0
oss.c
src/oss.c
+11
-2
No files found.
NEWS
View file @
8b691f60
mediastreamer-2.7.0:
mediastreamer-2.7.0:
February 7th, 2011
* add android video capture filter
* add android video display filters: one for 2.1 and one for 2.2+
* tune video encoder parameters for android
...
...
src/Makefile.am
View file @
8b691f60
ANDROID_SRC_FILES
=
\
msandroid.cpp
\
android-display.c
\
...
...
src/oss.c
View file @
8b691f60
...
...
@@ -329,6 +329,8 @@ static void * oss_thread(void *p){
uint8_t
*
wtmpbuff
=
NULL
;
int
err
;
mblk_t
*
rm
=
NULL
;
bool_t
did_read
=
FALSE
;
oss_open
(
d
,
&
bsize
);
if
(
d
->
pcmfd_read
>=
0
){
rtmpbuff
=
(
uint8_t
*
)
alloca
(
bsize
);
...
...
@@ -337,6 +339,7 @@ static void * oss_thread(void *p){
wtmpbuff
=
(
uint8_t
*
)
alloca
(
bsize
);
}
while
(
d
->
read_started
||
d
->
write_started
){
did_read
=
FALSE
;
if
(
d
->
pcmfd_read
>=
0
){
if
(
d
->
read_started
){
if
(
rm
==
NULL
)
rm
=
allocb
(
bsize
,
0
);
...
...
@@ -345,14 +348,19 @@ static void * oss_thread(void *p){
ms_warning
(
"Fail to read %i bytes from soundcard: %s"
,
bsize
,
strerror
(
errno
));
}
else
{
did_read
=
TRUE
;
rm
->
b_wptr
+=
err
;
putq
(
&
d
->
rq
,
rm
);
rm
=
NULL
;
}
}
else
{
/* case where we have no reader filtern the read is performed for synchronisation */
int
sz
=
read
(
d
->
pcmfd_read
,
rtmpbuff
,
bsize
);
if
(
sz
!=
bsize
)
ms_warning
(
"sound device read returned %i !"
,
sz
);
if
(
sz
==-
1
)
ms_warning
(
"sound device read error %s "
,
strerror
(
errno
));
else
did_read
=
TRUE
;
}
}
if
(
d
->
pcmfd_write
>=
0
){
if
(
d
->
write_started
){
err
=
ms_bufferizer_read
(
d
->
bufferizer
,
wtmpbuff
,
bsize
);
if
(
err
==
bsize
){
...
...
@@ -368,7 +376,8 @@ static void * oss_thread(void *p){
sz
=
write
(
d
->
pcmfd_write
,
wtmpbuff
,
bsize
);
if
(
sz
!=
bsize
)
ms_warning
(
"sound device write returned %i !"
,
sz
);
}
}
else
usleep
(
20000
);
}
if
(
!
did_read
)
usleep
(
20000
);
/*avoid 100%cpu loop for nothing*/
}
if
(
d
->
pcmfd_read
==
d
->
pcmfd_write
&&
d
->
pcmfd_read
>=
0
)
{
close
(
d
->
pcmfd_read
);
...
...
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