Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
11a8a96f
Commit
11a8a96f
authored
Jan 31, 2002
by
Christophe Massiot
Browse files
Fixed a bug in the network dialog.
parent
d3154bfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/gtk/gtk_open.c
View file @
11a8a96f
...
...
@@ -2,7 +2,7 @@
* gtk_open.c : functions to handle file/disc/network open widgets.
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: gtk_open.c,v 1.1
4
2002/01/
07 02
:1
2
:2
9 sam
Exp $
* $Id: gtk_open.c,v 1.1
5
2002/01/
31 23
:1
8
:2
7 massiot
Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Stphane Borel <stef@via.ecp.fr>
...
...
@@ -386,7 +386,7 @@ void GtkNetworkOpenOk( GtkButton *button, gpointer user_data )
GTK_WIDGET
(
button
),
"network_broadcast"
)
)
);
/* Allocate room for "protocol://server:port" */
psz_source
=
malloc
(
strlen
(
psz_protocol
)
+
3
/* "://" */
+
strlen
(
psz_server
)
+
1
/* ":" */
+
strlen
(
psz_server
)
+
2
/* "
@
:" */
+
5
/* 0-65535 */
+
strlen
(
psz_broadcast
)
+
2
/* "::" */
+
1
/* "\0" */
);
...
...
@@ -396,7 +396,7 @@ void GtkNetworkOpenOk( GtkButton *button, gpointer user_data )
}
/* Build source name and add it to playlist */
sprintf
(
psz_source
,
"%s://%s:%i/%s"
,
psz_protocol
,
sprintf
(
psz_source
,
"%s://%s
@
:%i/%s"
,
psz_protocol
,
psz_server
,
i_port
,
psz_broadcast
);
...
...
@@ -405,7 +405,7 @@ void GtkNetworkOpenOk( GtkButton *button, gpointer user_data )
{
/* Allocate room for "protocol://server:port" */
psz_source
=
malloc
(
strlen
(
psz_protocol
)
+
3
/* "://" */
+
strlen
(
psz_server
)
+
1
/* ":" */
+
strlen
(
psz_server
)
+
2
/* "
@
:" */
+
5
/* 0-65535 */
+
1
/* "\0" */
);
if
(
psz_source
==
NULL
)
{
...
...
@@ -413,7 +413,7 @@ void GtkNetworkOpenOk( GtkButton *button, gpointer user_data )
}
/* Build source name and add it to playlist */
sprintf
(
psz_source
,
"%s://%s:%i"
,
sprintf
(
psz_source
,
"%s://%s
@
:%i"
,
psz_protocol
,
psz_server
,
i_port
);
}
...
...
Write
Preview
Supports
Markdown
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