Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
2a9a3965
Commit
2a9a3965
authored
Oct 08, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audioscrobbler: we are already in our own thread, no need to create another one
parent
7de663b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
modules/misc/audioscrobbler.c
modules/misc/audioscrobbler.c
+5
-14
No files found.
modules/misc/audioscrobbler.c
View file @
2a9a3965
...
...
@@ -103,9 +103,7 @@ struct intf_sys_t
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
void
Unload
(
intf_thread_t
*
);
static
void
Run
(
intf_thread_t
*
);
static
void
Main
(
intf_thread_t
*
);
static
int
ItemChange
(
vlc_object_t
*
,
const
char
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
...
...
@@ -251,20 +249,10 @@ static void Unload( intf_thread_t *p_this )
vlc_object_destroy
(
p_this
);
}
/****************************************************************************
* Run : create Main() thread
* **************************************************************************/
static
void
Run
(
intf_thread_t
*
p_intf
)
{
if
(
vlc_thread_create
(
p_intf
,
"Audioscrobbler"
,
Main
,
0
,
VLC_TRUE
)
)
msg_Err
(
p_intf
,
"failed to create Audioscrobbler thread"
);
}
/*****************************************************************************
*
Mai
n : call Handshake() then submit songs
*
Ru
n : call Handshake() then submit songs
*****************************************************************************/
static
void
Mai
n
(
intf_thread_t
*
p_intf
)
static
void
Ru
n
(
intf_thread_t
*
p_intf
)
{
char
*
psz_submit
,
*
psz_submit_song
,
*
psz_submit_tmp
;
int
i_net_ret
;
...
...
@@ -288,7 +276,10 @@ static void Main( intf_thread_t *p_intf )
vlc_object_unlock
(
p_intf
);
if
(
b_die
)
{
msg_Dbg
(
p_intf
,
"audioscrobbler is dying
\n
"
);
return
;
}
/* handshake if needed */
if
(
p_sys
->
b_handshaked
==
VLC_FALSE
)
...
...
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