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
5a895839
Commit
5a895839
authored
Jun 07, 2002
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./src/misc/netutils.c: network mode works again.
parent
b8a59e7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
18 deletions
+11
-18
src/misc/netutils.c
src/misc/netutils.c
+11
-18
No files found.
src/misc/netutils.c
View file @
5a895839
...
...
@@ -2,7 +2,7 @@
* netutils.c: various network functions
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: netutils.c,v 1.
69 2002/06/04 00:11:12
sam Exp $
* $Id: netutils.c,v 1.
70 2002/06/07 21:45:30
sam Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Benoit Steiner <benny@via.ecp.fr>
...
...
@@ -75,6 +75,7 @@
#endif
#include "netutils.h"
#include "playlist.h"
#include "network.h"
...
...
@@ -263,26 +264,18 @@ int __network_ChannelJoin( vlc_object_t *p_this, int i_channel )
{
msg_Dbg
(
p_this
,
"vlcs said '%s'"
,
psz_mess
+
2
);
}
else
/* We got something to play ! FIXME: not very nice */
else
{
#if 0
# define p_item (&p_this->p_vlc->p_playlist->p_item \
[ p_this->p_vlc->p_playlist->i_index + 1])
vlc_mutex_lock( &p_this->p_vlc->p_playlist->change_lock );
if( p_item )
{
free( p_item->psz_name );
p_item->psz_name = strdup( psz_mess );
/* Unlock _afterwards_ */
vlc_mutex_unlock( &p_this->p_vlc->p_playlist->change_lock );
}
else
/* We got something to play ! */
playlist_t
*
p_playlist
;
p_playlist
=
vlc_object_find
(
p_this
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
p_playlist
!=
NULL
)
{
/* Unlock _before_ */
vlc_mutex_unlock( &p_this->p_vlc->p_playlist->change_lock
);
intf_PlaylistAdd( p_this->p_vlc->p_playlist, 0, psz_mess
);
playlist_Add
(
p_playlist
,
psz_mess
,
PLAYLIST_APPEND
|
PLAYLIST_GO
,
PLAYLIST_END
);
vlc_object_release
(
p_playlist
);
}
#endif
}
/* Close the socket and return nicely */
...
...
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