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
31b1820e
Commit
31b1820e
authored
Sep 28, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Misc Fixes
parent
90e23b41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
25 deletions
+28
-25
modules/gui/wxwindows/wizard.cpp
modules/gui/wxwindows/wizard.cpp
+28
-25
No files found.
modules/gui/wxwindows/wizard.cpp
View file @
31b1820e
...
@@ -1506,7 +1506,6 @@ int WizardDialog::GetAction()
...
@@ -1506,7 +1506,6 @@ int WizardDialog::GetAction()
void
WizardDialog
::
Run
()
void
WizardDialog
::
Run
()
{
{
fprintf
(
stderr
,
"p_intf %p %p"
,
p_intf
,
this
->
p_intf
);
msg_Dbg
(
p_intf
,
"starting wizard"
);
msg_Dbg
(
p_intf
,
"starting wizard"
);
if
(
RunWizard
(
page1
)
)
if
(
RunWizard
(
page1
)
)
{
{
...
@@ -1514,7 +1513,7 @@ void WizardDialog::Run()
...
@@ -1514,7 +1513,7 @@ void WizardDialog::Run()
char
*
psz_opt
;
char
*
psz_opt
;
msg_Dbg
(
p_intf
,
"wizard completed"
);
msg_Dbg
(
p_intf
,
"wizard completed"
);
if
(
i_action
==
ACTION_TRANSCODE
)
if
(
i_action
==
ACTION_TRANSCODE
)
{
{
msg_Dbg
(
p_intf
,
"Starting transcode of %s to file %s"
,
msg_Dbg
(
p_intf
,
"Starting transcode of %s to file %s"
,
mrl
,
address
);
mrl
,
address
);
...
@@ -1527,38 +1526,40 @@ void WizardDialog::Run()
...
@@ -1527,38 +1526,40 @@ void WizardDialog::Run()
char
*
psz_transcode
=
(
char
*
)
malloc
(
i_tr_size
*
sizeof
(
char
));
char
*
psz_transcode
=
(
char
*
)
malloc
(
i_tr_size
*
sizeof
(
char
));
if
(
vcodec
||
acodec
)
if
(
vcodec
||
acodec
)
{
{
sprintf
(
psz_transcode
,
"transcode{"
);
fprintf
(
stderr
,
"snprintf returned %i
\n
"
,
snprintf
(
psz_transcode
,
i_tr_size
,
"transcode{"
));
fprintf
(
stderr
,
"step 1 : %s
\n
"
,
psz_transcode
);
}
}
else
else
{
{
s
printf
(
psz_transcod
e
,
"%c"
,
0
);
s
nprintf
(
psz_transcode
,
i_tr_siz
e
,
"%c"
,
0
);
}
}
if
(
vcodec
)
if
(
vcodec
)
{
{
sprintf
(
psz_transcode
,
"%svcodec=%s,vb=%i"
,
fprintf
(
stderr
,
"snprintf returned %i
\n
"
,
snprintf
(
psz_transcode
,
i_tr_size
,
"%svcodec=%s,vb=%i"
,
psz_transcode
,
vcodec
,
vb
);
psz_transcode
,
vcodec
,
vb
));
fprintf
(
stderr
,
"step 2 : %s
\n
"
,
psz_transcode
);
}
}
if
(
acodec
)
if
(
acodec
)
{
{
sprintf
(
psz_transcod
e
,
"%s%cacodec=%s,ab=%i"
,
fprintf
(
stderr
,
"snprintf returned %i
\n
"
,
snprintf
(
psz_transcode
,
i_tr_siz
e
,
"%s%cacodec=%s,ab=%i"
,
psz_transcode
,
vcodec
?
','
:
' '
,
psz_transcode
,
vcodec
?
','
:
' '
,
acodec
,
ab
));
acodec
,
ab
);
fprintf
(
stderr
,
"step 3 : %s
\n
"
,
psz_transcode
);
}
}
if
(
vcodec
||
acodec
)
if
(
vcodec
||
acodec
)
{
{
sprintf
(
psz_transcode
,
"%s}:"
,
psz_transcode
);
snprintf
(
psz_transcode
,
i_tr_size
,
"%s}:"
,
psz_transcode
);
fprintf
(
stderr
,
"step 4 : %s
\n
"
,
psz_transcode
);
}
}
i_size
=
73
+
strlen
(
mux
)
+
strlen
(
address
)
+
strlen
(
psz_transcode
);
i_size
=
73
+
strlen
(
mux
)
+
strlen
(
address
)
+
strlen
(
psz_transcode
);
psz_opt
=
(
char
*
)
malloc
(
i_size
*
sizeof
(
char
)
);
psz_opt
=
(
char
*
)
malloc
(
i_size
*
sizeof
(
char
)
);
s
printf
(
psz_opt
,
":sout=#%sstandard{mux=%s,url=%s,"
s
nprintf
(
psz_opt
,
i_size
,
":sout=#%sstandard{mux=%s,url=%s,"
"access=file}"
,
"access=file}"
,
psz_transcode
,
mux
,
address
);
psz_transcode
,
mux
,
address
);
}
}
else
else
{
{
msg_Dbg
(
p_intf
,
"Starting stream of %s to %s using %s, encap %s"
,
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
)
if
(
b_sap
)
{
{
char
*
psz_sap_option
=
NULL
;
char
*
psz_sap_option
=
NULL
;
...
@@ -1566,19 +1567,20 @@ void WizardDialog::Run()
...
@@ -1566,19 +1567,20 @@ void WizardDialog::Run()
{
{
psz_sap_option
=
(
char
*
)
malloc
(
strlen
(
psz_sap_name
)
psz_sap_option
=
(
char
*
)
malloc
(
strlen
(
psz_sap_name
)
+
15
);
+
15
);
sprintf
(
psz_sap_option
,
"sap,name=
\"
%s
\"
"
,
psz_sap_name
);
snprintf
(
psz_sap_option
,
strlen
(
psz_sap_name
)
+
15
,
"sap,name=
\"
%s
\"
"
,
psz_sap_name
);
}
}
else
else
{
{
psz_sap_option
=
(
char
*
)
malloc
(
10
);
psz_sap_option
=
(
char
*
)
malloc
(
5
);
s
printf
(
psz_sap_option
,
"sap"
);
s
nprintf
(
psz_sap_option
,
5
,
"sap"
);
}
}
i_size
=
40
+
strlen
(
mux
)
+
strlen
(
address
)
+
i_size
=
40
+
strlen
(
mux
)
+
strlen
(
address
)
+
strlen
(
psz_sap_option
);
strlen
(
psz_sap_option
);
psz_opt
=
(
char
*
)
malloc
(
i_size
*
sizeof
(
char
)
);
psz_opt
=
(
char
*
)
malloc
(
i_size
*
sizeof
(
char
)
);
s
printf
(
psz_opt
,
s
nprintf
(
psz_opt
,
i_size
,
":sout=#standard{mux=%s,url=%s,access=%s,%s}"
,
":sout=#standard{mux=%s,url=%s,access=%s,%s}"
,
mux
,
address
,
method
,
psz_sap_option
);
mux
,
address
,
method
,
psz_sap_option
);
msg_Dbg
(
p_intf
,
"Sap enabled: %s"
,
psz_sap_option
);
msg_Dbg
(
p_intf
,
"Sap enabled: %s"
,
psz_sap_option
);
if
(
psz_sap_option
)
free
(
psz_sap_option
);
if
(
psz_sap_option
)
free
(
psz_sap_option
);
}
}
...
@@ -1586,8 +1588,9 @@ void WizardDialog::Run()
...
@@ -1586,8 +1588,9 @@ void WizardDialog::Run()
{
{
i_size
=
40
+
strlen
(
mux
)
+
strlen
(
address
);
i_size
=
40
+
strlen
(
mux
)
+
strlen
(
address
);
psz_opt
=
(
char
*
)
malloc
(
i_size
*
sizeof
(
char
)
);
psz_opt
=
(
char
*
)
malloc
(
i_size
*
sizeof
(
char
)
);
sprintf
(
psz_opt
,
":sout=#standard{mux=%s,url=%s,access=%s}"
,
snprintf
(
psz_opt
,
i_size
,
mux
,
address
,
method
);
":sout=#standard{mux=%s,url=%s,access=%s}"
,
mux
,
address
,
method
);
}
}
}
}
...
@@ -1602,18 +1605,18 @@ void WizardDialog::Run()
...
@@ -1602,18 +1605,18 @@ void WizardDialog::Run()
{
{
char
psz_from
[
20
];
char
psz_from
[
20
];
msg_Dbg
(
p_intf
,
"Setting starttime"
);
msg_Dbg
(
p_intf
,
"Setting starttime"
);
s
printf
(
psz_from
,
"start-time=%i"
,
i_from
);
s
nprintf
(
psz_from
,
20
,
"start-time=%i"
,
i_from
);
playlist_ItemAddOption
(
p_item
,
psz_from
);
playlist_ItemAddOption
(
p_item
,
psz_from
);
}
}
if
(
i_to
!=
0
)
if
(
i_to
!=
0
)
{
{
char
psz_to
[
20
];
char
psz_to
[
20
];
s
printf
(
psz_to
,
"stop-time=%i"
,
i_to
);
s
nprintf
(
psz_to
,
20
,
"stop-time=%i"
,
i_to
);
playlist_ItemAddOption
(
p_item
,
psz_to
);
playlist_ItemAddOption
(
p_item
,
psz_to
);
}
}
char
psz_ttl
[
20
];
char
psz_ttl
[
20
];
s
printf
(
psz_ttl
,
"ttl=%i"
,
i_ttl
);
s
nprintf
(
psz_ttl
,
20
,
"ttl=%i"
,
i_ttl
);
playlist_ItemAddOption
(
p_item
,
psz_ttl
);
playlist_ItemAddOption
(
p_item
,
psz_ttl
);
playlist_AddItem
(
p_playlist
,
p_item
,
PLAYLIST_GO
,
PLAYLIST_END
);
playlist_AddItem
(
p_playlist
,
p_item
,
PLAYLIST_GO
,
PLAYLIST_END
);
...
...
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