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
20e74551
Commit
20e74551
authored
Dec 15, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Add brackets around IPv6 address automatically if needed
- Some cleanup
parent
782faf1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
29 deletions
+19
-29
modules/gui/wxwidgets/dialogs/wizard.cpp
modules/gui/wxwidgets/dialogs/wizard.cpp
+19
-29
No files found.
modules/gui/wxwidgets/dialogs/wizard.cpp
View file @
20e74551
/*****************************************************************************
* wizard.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-200
4
the VideoLAN team
* Copyright (C) 2000-200
5
the VideoLAN team
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
* Authors: Cl
é
ment Stenac <zorglub@videolan.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -1541,7 +1541,6 @@ void WizardDialog::Run()
{
if
(
RunWizard
(
page1
)
)
{
int
i_size
;
char
*
psz_opt
;
if
(
i_action
==
ACTION_TRANSCODE
)
...
...
@@ -1588,9 +1587,7 @@ void WizardDialog::Run()
else
psz_transcode
=
""
;
i_size
=
73
+
strlen
(
mux
)
+
strlen
(
address
)
+
strlen
(
psz_transcode
);
psz_opt
=
(
char
*
)
malloc
(
i_size
*
sizeof
(
char
)
);
snprintf
(
psz_opt
,
i_size
,
":sout=#%sstandard{mux=%s,url=%s,"
asprintf
(
&
psz_opt
,
":sout=#%sstandard{mux=%s,url=%s,"
"access=file}"
,
psz_transcode
,
mux
,
address
);
if
(
*
psz_transcode
)
...
...
@@ -1598,37 +1595,30 @@ void WizardDialog::Run()
}
else
{
char
*
psz_sap_option
=
NULL
;
bool
v6
;
msg_Dbg
(
p_intf
,
"Starting stream of %s to %s using %s, encap %s"
,
mrl
,
address
,
method
,
mux
);
mrl
,
address
,
method
,
mux
);
if
(
b_sap
)
{
char
*
psz_sap_option
=
NULL
;
if
(
psz_sap_name
)
{
psz_sap_option
=
(
char
*
)
malloc
(
strlen
(
psz_sap_name
)
+
15
);
snprintf
(
psz_sap_option
,
strlen
(
psz_sap_name
)
+
15
,
"sap,name=
\"
%s
\"
"
,
psz_sap_name
);
asprintf
(
&
psz_sap_option
,
",sap,name=
\"
%s
\"
"
,
psz_sap_name
);
}
else
psz_sap_option
=
strdup
(
"sap"
);
i_size
=
40
+
strlen
(
mux
)
+
strlen
(
address
)
+
strlen
(
psz_sap_option
);
psz_opt
=
(
char
*
)
malloc
(
i_size
*
sizeof
(
char
)
);
snprintf
(
psz_opt
,
i_size
,
":sout=#standard{mux=%s,url=%s,access=%s,%s}"
,
mux
,
address
,
method
,
psz_sap_option
);
if
(
psz_sap_option
)
free
(
psz_sap_option
);
}
else
{
i_size
=
40
+
strlen
(
mux
)
+
strlen
(
address
);
psz_opt
=
(
char
*
)
malloc
(
i_size
*
sizeof
(
char
)
);
snprintf
(
psz_opt
,
i_size
,
":sout=#standard{mux=%s,url=%s,access=%s}"
,
mux
,
address
,
method
);
psz_sap_option
=
strdup
(
",sap"
);
}
/* Add brackets automatically for IPv6 if they are missing */
v6
=
(
address
[
0
]
!=
'['
)
&&
(
strchr
(
address
,
':'
)
!=
NULL
);
asprintf
(
&
psz_opt
,
":sout=#standard{mux=%s,url=%s%s%s,access=%s%s}"
,
mux
,
v6
?
"["
:
""
,
address
,
v6
?
"]"
:
""
,
method
,
psz_sap_option
?:
""
);
if
(
psz_sap_option
)
free
(
psz_sap_option
);
}
playlist_t
*
p_playlist
=
(
playlist_t
*
)
vlc_object_find
(
p_intf
,
...
...
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