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
97704de1
Commit
97704de1
authored
Feb 07, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix two memleaks and remove a bogus net_Close()
parent
4b9a9b5a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
include/stream_output.h
include/stream_output.h
+1
-1
src/stream_output/announce.c
src/stream_output/announce.c
+2
-2
src/stream_output/sap.c
src/stream_output/sap.c
+7
-2
No files found.
include/stream_output.h
View file @
97704de1
...
...
@@ -260,8 +260,8 @@ struct announce_method_t
/* For SAP */
int
i_ip_version
;
char
*
psz_ipv6_scope
;
char
*
psz_address
;
/* If we use a custom address */
char
sz_ipv6_scope
;
};
...
...
src/stream_output/announce.c
View file @
97704de1
...
...
@@ -184,7 +184,7 @@ void sout_AnnounceSessionDestroy( session_descriptor_t *p_session )
FREE
(
p_session
->
psz_group
);
FREE
(
p_session
->
psz_uri
);
FREE
(
p_session
->
psz_sdp
);
FREE
(
p_session
);
free
(
p_session
);
}
}
...
...
@@ -208,7 +208,7 @@ announce_method_t * sout_AnnounceMethodCreate( int i_type )
/* Default values */
p_method
->
psz_address
=
NULL
;
p_method
->
i_ip_version
=
4
;
p_method
->
psz_ipv6_scope
=
strdup
(
"8"
)
;
p_method
->
sz_ipv6_scope
=
'\0'
;
}
}
return
p_method
;
...
...
src/stream_output/sap.c
View file @
97704de1
...
...
@@ -248,9 +248,9 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
if
(
p_method
->
i_ip_version
==
6
)
{
char
sz_scope
;
if
(
p_method
->
psz_ipv6_scope
!=
NULL
)
if
(
p_method
->
sz_ipv6_scope
)
{
sz_scope
=
*
p_method
->
p
sz_ipv6_scope
;
sz_scope
=
p_method
->
sz_ipv6_scope
;
}
else
{
...
...
@@ -318,6 +318,7 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
p_address
->
b_enabled
=
VLC_TRUE
;
p_address
->
b_ready
=
VLC_TRUE
;
p_address
->
i_interval
=
config_GetInt
(
p_sap
,
"sap-interval"
);
p_address
->
i_rfd
=
-
1
;
}
if
(
p_address
->
i_wfd
==
-
1
||
(
p_address
->
i_rfd
==
-
1
...
...
@@ -435,6 +436,10 @@ static int announce_SAPAnnounceDel( sap_handler_t *p_sap,
REMOVE_ELEM
(
p_sap
->
pp_sessions
,
p_sap
->
i_sessions
,
i
);
FREE
(
p_session
->
p_sap
->
psz_sdp
);
FREE
(
p_session
->
p_sap
->
psz_data
);
free
(
p_session
->
p_sap
);
break
;
}
}
...
...
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