Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc
Commits
55c96074
Commit
55c96074
authored
May 27, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'base' into master
parents
b74ce937
8e4c60f6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
26 deletions
+38
-26
extras/contrib/bootstrap
extras/contrib/bootstrap
+2
-0
extras/contrib/src/Distributions/maemo.mak
extras/contrib/src/Distributions/maemo.mak
+13
-0
extras/contrib/src/Makefile
extras/contrib/src/Makefile
+2
-1
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+21
-25
No files found.
extras/contrib/bootstrap
View file @
55c96074
...
...
@@ -267,6 +267,8 @@ case $HOST in
# Try to match distribution
if
test
-f
/etc/fedora-release
;
then
cat
src/Distributions/fedora.mak
>>
distro.mak
elif
test
-f
/etc/maemo_version
;
then
cat
src/Distributions/maemo.mak
>>
distro.mak
else
# Default Unix-like systems
cat
src/Distributions/unix.mak
>>
distro.mak
...
...
extras/contrib/src/Distributions/maemo.mak
0 → 100644
View file @
55c96074
# Maemo 5
all
:
\
.mad .a52 .dca .mpcdec .faad .lame .mpeg2
\
.id3tag
\
.ogg .vorbis .vorbisenc .flac .speex .theora .kate .tiger
\
.twolame .x264
\
.ebml .matroska .ffmpeg .mod
\
.live .dvbpsi .zvbi
\
.lua
#.gpg-error .gcrypt .gnutls -> OpenSSL
#.dvdcss .dvdnav -> no DVD
#.dirac -> broken
#.faac -> non-free
extras/contrib/src/Makefile
View file @
55c96074
...
...
@@ -133,7 +133,8 @@ endif
FFMPEGCONF
+=
--enable-small
--disable-debug
--disable-mpegaudio-hp
FFMPEG_CFLAGS
+=
-DHAVE_LRINTF
--std
=
c99
else
FFMPEGCONF
+=
--enable-libmp3lame
--enable-libfaac
--enable-libgsm
FFMPEGCONF
+=
--enable-libmp3lame
--enable-libgsm
#--enable-libfaac
endif
ifdef
HAVE_BEOS
...
...
modules/stream_out/rtp.c
View file @
55c96074
...
...
@@ -853,10 +853,8 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
* mux (TS/PS), then p_fmt is NULL. */
sout_stream_sys_t
*
p_sys
=
p_stream
->
p_sys
;
sout_stream_id_t
*
id
;
int
i_port
,
cscov
=
-
1
;
int
cscov
=
-
1
;
char
*
psz_sdp
;
int
i_port_audio_option
=
var_GetInteger
(
p_stream
,
"port-audio"
);
int
i_port_video_option
=
var_GetInteger
(
p_stream
,
"port-video"
);
if
(
0xffffffff
==
p_sys
->
payload_bitmap
)
{
...
...
@@ -864,38 +862,41 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
return
NULL
;
}
id
=
vlc_object_create
(
p_stream
,
sizeof
(
sout_stream_id_t
)
);
if
(
id
==
NULL
)
return
NULL
;
vlc_object_attach
(
id
,
p_stream
);
/* Choose the port */
i_port
=
0
;
uint16_t
i_port
=
0
;
if
(
p_fmt
==
NULL
)
;
else
if
(
p_fmt
->
i_cat
==
AUDIO_ES
&&
p_sys
->
i_port_audio
>
0
)
{
i_port
=
p_sys
->
i_port_audio
;
p_sys
->
i_port_audio
=
0
;
}
else
if
(
p_fmt
->
i_cat
==
VIDEO_ES
&&
p_sys
->
i_port_video
>
0
)
{
i_port
=
p_sys
->
i_port_video
;
p_sys
->
i_port_video
=
0
;
}
while
(
i_port
==
0
)
/* We do not need the ES lock (p_sys->lock_es) here, because this is the
* only one thread that can *modify* the ES table. The ES lock protects
* the other threads from our modifications (TAB_APPEND, TAB_REMOVE). */
for
(
int
i
=
0
;
i_port
&&
(
i
<
p_sys
->
i_es
);
i
++
)
if
(
i_port
==
p_sys
->
es
[
i
]
->
i_port
)
i_port
=
0
;
/* Port already in use! */
for
(
uint16_t
p
=
p_sys
->
i_port
;
i_port
==
0
;
p
+=
2
)
{
if
(
p_sys
->
i_port
!=
i_port_audio_option
&&
p_sys
->
i_port
!=
i_port_video_option
)
if
(
p
==
0
)
{
i_port
=
p_sys
->
i_port
;
msg_Err
(
p_stream
,
"too many RTP elementary streams"
);
return
NULL
;
}
p_sys
->
i_port
+=
2
;
i_port
=
p
;
for
(
int
i
=
0
;
i_port
&&
(
i
<
p_sys
->
i_es
);
i
++
)
if
(
p
==
p_sys
->
es
[
i
]
->
i_port
)
i_port
=
0
;
}
id
=
vlc_object_create
(
p_stream
,
sizeof
(
sout_stream_id_t
)
);
if
(
id
==
NULL
)
return
NULL
;
vlc_object_attach
(
id
,
p_stream
);
id
->
p_stream
=
p_stream
;
/* Look for free dymanic payload type */
...
...
@@ -1309,11 +1310,6 @@ static int Del( sout_stream_t *p_stream, sout_stream_id_t *id )
TAB_REMOVE
(
p_sys
->
i_es
,
p_sys
->
es
,
id
);
vlc_mutex_unlock
(
&
p_sys
->
lock_es
);
/* Release port */
if
(
id
->
i_port
==
var_GetInteger
(
p_stream
,
"port-audio"
)
)
p_sys
->
i_port_audio
=
id
->
i_port
;
if
(
id
->
i_port
==
var_GetInteger
(
p_stream
,
"port-video"
)
)
p_sys
->
i_port_video
=
id
->
i_port
;
/* Release dynamic payload type */
if
(
id
->
i_payload_type
>=
96
)
p_sys
->
payload_bitmap
&=
~
(
1
<<
(
id
->
i_payload_type
-
96
));
...
...
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