Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
11a8a96f
Commit
11a8a96f
authored
Jan 31, 2002
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug in the network dialog.
parent
d3154bfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
plugins/gtk/gtk_open.c
plugins/gtk/gtk_open.c
+5
-5
No files found.
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:12:29 sam
Exp $
* $Id: gtk_open.c,v 1.1
5 2002/01/31 23:18:27 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
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