Changeset 2a9a3965078ee0451c8102119f5d274d2ffd0a27
- Timestamp:
- 08/10/07 03:13:27
(1 year ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1191806007 +0000
- git-parent:
[7de663b7317b3514f4a6c26c7685da9403da7c02]
- git-author:
- Rafaël Carré <funman@videolan.org> 1191806007 +0000
- Message:
audioscrobbler: we are already in our own thread, no need to create another one
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r7de663b |
r2a9a396 |
|
| 104 | 104 | static void Close ( vlc_object_t * ); |
|---|
| 105 | 105 | static void Unload ( intf_thread_t * ); |
|---|
| 106 | | |
|---|
| 107 | 106 | static void Run ( intf_thread_t * ); |
|---|
| 108 | | static void Main ( intf_thread_t * ); |
|---|
| 109 | 107 | |
|---|
| 110 | 108 | static int ItemChange ( vlc_object_t *, const char *, vlc_value_t, |
|---|
| … | … | |
| 252 | 250 | } |
|---|
| 253 | 251 | |
|---|
| 254 | | |
|---|
| 255 | | /**************************************************************************** |
|---|
| 256 | | * Run : create Main() thread |
|---|
| 257 | | * **************************************************************************/ |
|---|
| | 252 | /***************************************************************************** |
|---|
| | 253 | * Run : call Handshake() then submit songs |
|---|
| | 254 | *****************************************************************************/ |
|---|
| 258 | 255 | static void Run( intf_thread_t *p_intf ) |
|---|
| 259 | | { |
|---|
| 260 | | if( vlc_thread_create( p_intf, "Audioscrobbler", Main, 0, VLC_TRUE ) ) |
|---|
| 261 | | msg_Err( p_intf, "failed to create Audioscrobbler thread" ); |
|---|
| 262 | | } |
|---|
| 263 | | |
|---|
| 264 | | /***************************************************************************** |
|---|
| 265 | | * Main : call Handshake() then submit songs |
|---|
| 266 | | *****************************************************************************/ |
|---|
| 267 | | static void Main( intf_thread_t *p_intf ) |
|---|
| 268 | 256 | { |
|---|
| 269 | 257 | char *psz_submit, *psz_submit_song, *psz_submit_tmp; |
|---|
| … | … | |
| 289 | 277 | |
|---|
| 290 | 278 | if( b_die ) |
|---|
| | 279 | { |
|---|
| | 280 | msg_Dbg( p_intf, "audioscrobbler is dying\n"); |
|---|
| 291 | 281 | return; |
|---|
| | 282 | } |
|---|
| 292 | 283 | |
|---|
| 293 | 284 | /* handshake if needed */ |
|---|