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
043b5c89
Commit
043b5c89
authored
Nov 12, 2001
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Automatic handling of the Channel Server's response in network mode.
parent
b70a26fa
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
147 additions
and
166 deletions
+147
-166
.cvsignore
.cvsignore
+1
-0
include/netutils.h
include/netutils.h
+5
-5
plugins/gtk/gtk_callbacks.c
plugins/gtk/gtk_callbacks.c
+8
-4
src/input/input.c
src/input/input.c
+8
-2
src/interface/intf_playlist.c
src/interface/intf_playlist.c
+12
-12
src/misc/netutils.c
src/misc/netutils.c
+113
-143
No files found.
.cvsignore
View file @
043b5c89
.*
.*
core
core
core.*
.dep
.dep
gmon.out
gmon.out
vlc-debug.log
vlc-debug.log
...
...
include/netutils.h
View file @
043b5c89
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* modules.
* modules.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: netutils.h,v 1.1
5 2001/10/22 12:28:53 massiot
Exp $
* $Id: netutils.h,v 1.1
6 2001/11/12 04:12:37 sam
Exp $
*
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Henri Fallon <henri@videolan.org>
* Henri Fallon <henri@videolan.org>
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
*****************************************************************************/
*****************************************************************************/
struct
sockaddr_in
;
struct
sockaddr_in
;
int
network_BuildLocalAddr
(
struct
sockaddr_in
*
,
int
,
char
*
);
int
network_BuildLocalAddr
(
struct
sockaddr_in
*
,
int
,
char
*
);
int
network_BuildRemoteAddr
(
struct
sockaddr_in
*
,
char
*
);
int
network_BuildRemoteAddr
(
struct
sockaddr_in
*
,
char
*
);
int
network_ChannelJoin
(
int
);
int
network_ChannelJoin
(
int
);
int
network_ChannelCreate
(
void
);
int
network_ChannelCreate
(
void
);
plugins/gtk/gtk_callbacks.c
View file @
043b5c89
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk_callbacks.c : Callbacks for the Gtk+ plugin.
* gtk_callbacks.c : Callbacks for the Gtk+ plugin.
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* Copyright (C) 2000, 2001 VideoLAN
* $Id: gtk_callbacks.c,v 1.2
4 2001/05/31 16:10:05 stef
Exp $
* $Id: gtk_callbacks.c,v 1.2
5 2001/11/12 04:12:37 sam
Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
* Stphane Borel <stef@via.ecp.fr>
* Stphane Borel <stef@via.ecp.fr>
...
@@ -326,12 +326,16 @@ void GtkChannelGo( GtkButton * button, gpointer user_data )
...
@@ -326,12 +326,16 @@ void GtkChannelGo( GtkButton * button, gpointer user_data )
/* FIXME: ugly hack to close input and outputs */
/* FIXME: ugly hack to close input and outputs */
p_intf
->
pf_manage
(
p_intf
);
p_intf
->
pf_manage
(
p_intf
);
}
network_ChannelJoin
(
i_channel
);
/* FIXME 2 */
p_main
->
p_playlist
->
b_stopped
=
0
;
p_main
->
p_playlist
->
b_stopped
=
0
;
p_intf
->
pf_manage
(
p_intf
);
p_intf
->
pf_manage
(
p_intf
);
}
vlc_mutex_unlock
(
&
p_intf
->
change_lock
);
vlc_mutex_unlock
(
&
p_intf
->
change_lock
);
network_ChannelJoin
(
i_channel
);
input_SetStatus
(
p_intf
->
p_input
,
INPUT_STATUS_PLAY
);
input_SetStatus
(
p_intf
->
p_input
,
INPUT_STATUS_PLAY
);
}
}
...
...
src/input/input.c
View file @
043b5c89
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* decoders.
* decoders.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: input.c,v 1.15
2 2001/11/09 13:49:26 massiot
Exp $
* $Id: input.c,v 1.15
3 2001/11/12 04:12:37 sam
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
*
...
@@ -534,7 +534,6 @@ static void EndThread( input_thread_t * p_input )
...
@@ -534,7 +534,6 @@ static void EndThread( input_thread_t * p_input )
/* Release modules */
/* Release modules */
module_Unneed
(
p_input
->
p_input_module
);
module_Unneed
(
p_input
->
p_input_module
);
}
}
/*****************************************************************************
/*****************************************************************************
...
@@ -812,6 +811,11 @@ static void NetworkOpen( input_thread_t * p_input )
...
@@ -812,6 +811,11 @@ static void NetworkOpen( input_thread_t * p_input )
psz_server
=
NULL
;
psz_server
=
NULL
;
}
}
}
}
else
{
/* This is required or NetworkClose will never be called */
p_input
->
p_source
=
"ts: network input"
;
}
/* Check that we got a valid server */
/* Check that we got a valid server */
if
(
psz_server
==
NULL
)
if
(
psz_server
==
NULL
)
...
@@ -986,6 +990,8 @@ static void NetworkOpen( input_thread_t * p_input )
...
@@ -986,6 +990,8 @@ static void NetworkOpen( input_thread_t * p_input )
*****************************************************************************/
*****************************************************************************/
static
void
NetworkClose
(
input_thread_t
*
p_input
)
static
void
NetworkClose
(
input_thread_t
*
p_input
)
{
{
intf_WarnMsg
(
2
,
"input: closing network target `%s'"
,
p_input
->
p_source
);
close
(
p_input
->
i_handle
);
close
(
p_input
->
i_handle
);
#ifdef WIN32
#ifdef WIN32
...
...
src/interface/intf_playlist.c
View file @
043b5c89
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* intf_playlist.c : Playlist management functions
* intf_playlist.c : Playlist management functions
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: intf_playlist.c,v 1.
8 2001/08/09 08:20:26
sam Exp $
* $Id: intf_playlist.c,v 1.
9 2001/11/12 04:12:38
sam Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
...
src/misc/netutils.c
View file @
043b5c89
This diff is collapsed.
Click to expand it.
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