Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
88148cbd
Commit
88148cbd
authored
May 17, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes
parent
620dc72a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
18 deletions
+28
-18
src/stream_output/sdp.c
src/stream_output/sdp.c
+14
-2
src/stream_output/stream_output.h
src/stream_output/stream_output.h
+14
-16
No files found.
src/stream_output/sdp.c
View file @
88148cbd
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
* This program is distributed in the hope that it will be useful,
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* GNU
Lesser
General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* along with this program; if not, write to the Free Software
...
@@ -151,7 +151,7 @@ char *StartSDP (const char *name, const char *description, const char *url,
...
@@ -151,7 +151,7 @@ char *StartSDP (const char *name, const char *description, const char *url,
}
}
char
*
v
Make
SDPMedia
(
const
char
*
type
,
int
dport
,
const
char
*
protocol
,
char
*
v
Add
SDPMedia
(
const
char
*
type
,
int
dport
,
const
char
*
protocol
,
unsigned
pt
,
const
char
*
rtpmap
,
unsigned
pt
,
const
char
*
rtpmap
,
const
char
*
fmtpfmt
,
va_list
ap
)
const
char
*
fmtpfmt
,
va_list
ap
)
{
{
...
@@ -195,3 +195,15 @@ char *vMakeSDPMedia (const char *type, int dport, const char *protocol,
...
@@ -195,3 +195,15 @@ char *vMakeSDPMedia (const char *type, int dport, const char *protocol,
return
sdp_media
;
return
sdp_media
;
}
}
char
*
AddSDPMedia
(
const
char
*
type
,
int
dport
,
const
char
*
protocol
,
unsigned
pt
,
const
char
*
rtpmap
,
const
char
*
fmtpfmt
,
...)
{
va_list
ap
;
char
*
ret
;
va_start
(
ap
,
fmtpfmt
);
ret
=
vAddSDPMedia
(
type
,
dport
,
protocol
,
pt
,
rtpmap
,
fmtpfmt
,
ap
);
va_end
(
ap
);
return
ret
;
}
src/stream_output/stream_output.h
View file @
88148cbd
...
@@ -24,8 +24,11 @@
...
@@ -24,8 +24,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
***************************************************************************/
***************************************************************************/
#include <vlc_sout.h>
#ifndef VLC_SRC_STREAMOUT_H
#include <vlc_network.h>
# define VLC_SRC_STREAMOUT_H 1
# include <vlc_sout.h>
# include <vlc_network.h>
/****************************************************************************
/****************************************************************************
* sout_packetizer_input_t: p_sout <-> p_packetizer
* sout_packetizer_input_t: p_sout <-> p_packetizer
...
@@ -118,17 +121,12 @@ char *StartSDP (const char *name, const char *description, const char *url,
...
@@ -118,17 +121,12 @@ char *StartSDP (const char *name, const char *description, const char *url,
const
char
*
email
,
const
char
*
phone
,
vlc_bool_t
ssm
,
const
char
*
email
,
const
char
*
phone
,
vlc_bool_t
ssm
,
const
struct
sockaddr
*
orig
,
socklen_t
origlen
,
const
struct
sockaddr
*
orig
,
socklen_t
origlen
,
const
struct
sockaddr
*
addr
,
socklen_t
addrlen
);
const
struct
sockaddr
*
addr
,
socklen_t
addrlen
);
char
*
vMakeSDPMedia
(
const
char
*
type
,
int
dport
,
const
char
*
protocol
,
unsigned
pt
,
const
char
*
rtpmap
,
char
*
vAddSDPMedia
(
const
char
*
type
,
int
dport
,
const
char
*
protocol
,
const
char
*
fmtp
,
va_list
ap
);
unsigned
pt
,
const
char
*
rtpmap
,
static
inline
const
char
*
fmtpfmt
,
va_list
ap
);
char
*
MakeSDPMedia
(
const
char
*
type
,
int
dport
,
const
char
*
protocol
,
char
*
AddSDPMedia
(
const
char
*
type
,
int
dport
,
unsigned
pt
,
const
char
*
rtpmap
,
const
char
*
fmtpfmt
,
...)
const
char
*
protocol
,
unsigned
pt
,
const
char
*
rtpmap
,
{
const
char
*
fmtpfmt
,
...);
va_list
ap
;
char
*
ret
;
#endif
va_start
(
ap
,
fmtpfmt
);
ret
=
vMakeSDPMedia
(
type
,
dport
,
protocol
,
pt
,
rtpmap
,
fmtpfmt
,
ap
);
va_end
(
ap
);
return
ret
;
}
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