Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
677f45de
Commit
677f45de
authored
Jan 12, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused factory pattern for SDP announces
parent
9168a4fe
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
40 deletions
+6
-40
include/vlc_sout.h
include/vlc_sout.h
+3
-6
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+1
-6
modules/stream_out/standard.c
modules/stream_out/standard.c
+1
-4
src/libvlccore.sym
src/libvlccore.sym
+0
-2
src/stream_output/announce.c
src/stream_output/announce.c
+1
-22
No files found.
include/vlc_sout.h
View file @
677f45de
...
...
@@ -249,16 +249,13 @@ VLC_EXPORT( encoder_t *, sout_EncoderCreate, ( vlc_object_t *obj ) );
/****************************************************************************
* Announce handler
****************************************************************************/
VLC_EXPORT
(
session_descriptor_t
*
,
sout_AnnounceRegisterSDP
,
(
vlc_object_t
*
,
const
char
*
,
const
char
*
,
announce_method_t
*
)
LIBVLC_USED
);
VLC_EXPORT
(
session_descriptor_t
*
,
sout_AnnounceRegisterSDP
,
(
vlc_object_t
*
,
const
char
*
,
const
char
*
)
LIBVLC_USED
);
VLC_EXPORT
(
int
,
sout_AnnounceUnRegister
,
(
vlc_object_t
*
,
session_descriptor_t
*
)
);
#define sout_AnnounceRegisterSDP(o, sdp, addr
, m
) \
sout_AnnounceRegisterSDP(VLC_OBJECT (o), sdp, addr
, m
)
#define sout_AnnounceRegisterSDP(o, sdp, addr) \
sout_AnnounceRegisterSDP(VLC_OBJECT (o), sdp, addr)
#define sout_AnnounceUnRegister(o, a) \
sout_AnnounceUnRegister(VLC_OBJECT (o), a)
VLC_EXPORT
(
announce_method_t
*
,
sout_SAPMethod
,
(
void
)
LIBVLC_USED
);
VLC_EXPORT
(
void
,
sout_MethodRelease
,
(
announce_method_t
*
)
);
/** SDP */
struct
sockaddr
;
...
...
modules/stream_out/rtp.c
View file @
677f45de
...
...
@@ -1270,14 +1270,9 @@ static int SapSetup( sout_stream_t *p_stream )
}
if
(
p_sys
->
i_es
>
0
&&
p_sys
->
psz_sdp
&&
*
p_sys
->
psz_sdp
)
{
announce_method_t
*
p_method
=
sout_SAPMethod
();
p_sys
->
p_session
=
sout_AnnounceRegisterSDP
(
p_sout
,
p_sys
->
psz_sdp
,
p_sys
->
psz_destination
,
p_method
);
sout_MethodRelease
(
p_method
);
}
p_sys
->
psz_destination
);
return
VLC_SUCCESS
;
}
...
...
modules/stream_out/standard.c
View file @
677f45de
...
...
@@ -463,12 +463,9 @@ static int Open( vlc_object_t *p_this )
/* Register the SDP with the SAP thread */
if
(
psz_sdp
!=
NULL
)
{
announce_method_t
*
p_method
=
sout_SAPMethod
();
msg_Dbg
(
p_stream
,
"Generated SDP:
\n
%s"
,
psz_sdp
);
p_sys
->
p_session
=
sout_AnnounceRegisterSDP
(
p_sout
,
psz_sdp
,
dhost
,
p_method
);
sout_MethodRelease
(
p_method
);
sout_AnnounceRegisterSDP
(
p_sout
,
psz_sdp
,
dhost
);
free
(
psz_sdp
);
}
free
(
dhost
);
...
...
src/libvlccore.sym
View file @
677f45de
...
...
@@ -390,14 +390,12 @@ sout_AccessOutWrite
sout_AnnounceRegisterSDP
sout_AnnounceUnRegister
sout_EncoderCreate
sout_MethodRelease
sout_MuxAddStream
sout_MuxDelete
sout_MuxDeleteStream
sout_MuxGetStream
sout_MuxNew
sout_MuxSendBuffer
sout_SAPMethod
sout_StreamChainDelete
sout_StreamChainNew
sout_UpdateStatistic
...
...
src/stream_output/announce.c
View file @
677f45de
...
...
@@ -35,10 +35,6 @@
#include <assert.h>
struct
announce_method_t
{
}
sap_method
;
/****************************************************************************
* Sout-side functions
****************************************************************************/
...
...
@@ -58,16 +54,12 @@ static vlc_mutex_t sap_mutex = VLC_STATIC_MUTEX;
* \param obj a VLC object
* \param psz_sdp the SDP to register
* \param psz_dst session address (needed for SAP address auto detection)
* \param p_method an announce method descriptor
* \return the new session descriptor structure
*/
session_descriptor_t
*
sout_AnnounceRegisterSDP
(
vlc_object_t
*
obj
,
const
char
*
psz_sdp
,
const
char
*
psz_dst
,
announce_method_t
*
p_method
)
const
char
*
psz_dst
)
{
assert
(
p_method
==
&
sap_method
);
(
void
)
p_method
;
session_descriptor_t
*
p_session
=
calloc
(
1
,
sizeof
(
*
p_session
)
);
if
(
!
p_session
)
return
NULL
;
...
...
@@ -134,16 +126,3 @@ int sout_AnnounceUnRegister( vlc_object_t *obj,
return
0
;
}
/**
* \return the SAP announce method
*/
announce_method_t
*
sout_SAPMethod
(
void
)
{
return
&
sap_method
;
}
void
sout_MethodRelease
(
announce_method_t
*
m
)
{
assert
(
m
==
&
sap_method
);
}
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