Changeset 450a2fb53d96f11f7438f9ecdb6225bdaf2ab1c2
- Timestamp:
- 25/05/06 21:38:45
(3 years ago)
- Author:
- Clément Stenac <zorglub@videolan.org>
- git-committer:
- Clément Stenac <zorglub@videolan.org> 1148585925 +0000
- git-parent:
[05b21e9603158b8e145eaa776bf088db6594eb33]
- git-author:
- Clément Stenac <zorglub@videolan.org> 1148585925 +0000
- Message:
Fix CDDA and a corner-case in playlist handling
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r8e7484b |
r450a2fb |
|
| 5495 | 5495 | modules/gui/macosx/Makefile |
|---|
| 5496 | 5496 | modules/gui/qnx/Makefile |
|---|
| | 5497 | modules/gui/qt4/Makefile |
|---|
| 5497 | 5498 | modules/gui/skins2/Makefile |
|---|
| 5498 | 5499 | modules/gui/wxwidgets/Makefile |
|---|
| r38f9675 |
r450a2fb |
|
| 236 | 236 | { |
|---|
| 237 | 237 | msg_Dbg( p_playlist, "unable to find item in playlist"); |
|---|
| 238 | | return -1; |
|---|
| | 238 | return -1; |
|---|
| 239 | 239 | } |
|---|
| 240 | 240 | b_play = VLC_FALSE; |
|---|
| … | … | |
| 292 | 292 | if( b_play ) |
|---|
| 293 | 293 | { |
|---|
| 294 | | playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, |
|---|
| 295 | | p_playlist->status.p_item, NULL ); |
|---|
| | 294 | playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, 1242, |
|---|
| | 295 | p_playlist->request.p_node, NULL ); |
|---|
| | 296 | // playlist_Play( p_playlist ); |
|---|
| 296 | 297 | } |
|---|
| 297 | 298 | |
|---|
| … | … | |
| 536 | 537 | int i; |
|---|
| 537 | 538 | input_item_t *p_input_item; |
|---|
| | 539 | playlist_item_t *p_item_in_category; |
|---|
| 538 | 540 | char *psz_name; |
|---|
| 539 | 541 | p_sys->i_titles = ioctl_GetTracksMap( VLC_OBJECT(p_access), |
|---|
| … | … | |
| 552 | 554 | if( b_separate ) |
|---|
| 553 | 555 | { |
|---|
| 554 | | if( p_parent->i_children == -1 ) |
|---|
| 555 | | { |
|---|
| 556 | | playlist_LockItemToNode( p_playlist, p_parent ); |
|---|
| 557 | | } |
|---|
| | 556 | p_item_in_category = playlist_LockItemToNode( p_playlist, p_parent ); |
|---|
| 558 | 557 | psz_name = strdup( "Audio CD" ); |
|---|
| 559 | 558 | vlc_mutex_lock( &p_playlist->object_lock ); |
|---|
| … | … | |
| 649 | 648 | } |
|---|
| 650 | 649 | #endif |
|---|
| 651 | | playlist_BothAddInput( p_playlist, p_input_item, p_parent, |
|---|
| 652 | | PLAYLIST_APPEND, PLAYLIST_END ); |
|---|
| | 650 | playlist_AddWhereverNeeded( p_playlist, p_input_item, p_parent, |
|---|
| | 651 | p_item_in_category, VLC_FALSE, PLAYLIST_APPEND ); |
|---|
| 653 | 652 | free( psz_uri ); free( psz_opt ); free( psz_name ); |
|---|
| 654 | 653 | } |
|---|
| rc21acbb |
r450a2fb |
|
| 114 | 114 | if ( p_node == NULL ) |
|---|
| 115 | 115 | { |
|---|
| 116 | | p_playlist->status.i_status = PLAYLIST_STOPPED; |
|---|
| 117 | | p_playlist->request.b_request = VLC_TRUE; |
|---|
| 118 | | msg_Err( p_playlist, "null node" ); |
|---|
| 119 | | return VLC_SUCCESS; |
|---|
| | 116 | p_node = p_playlist->status.p_node; |
|---|
| | 117 | if( !p_node ) |
|---|
| | 118 | { |
|---|
| | 119 | p_playlist->status.i_status = PLAYLIST_STOPPED; |
|---|
| | 120 | p_playlist->request.b_request = VLC_TRUE; |
|---|
| | 121 | msg_Err( p_playlist, "null node" ); |
|---|
| | 122 | return VLC_SUCCESS; |
|---|
| | 123 | } |
|---|
| 120 | 124 | } |
|---|
| 121 | 125 | p_playlist->request.i_status = PLAYLIST_RUNNING; |
|---|
| rc21acbb |
r450a2fb |
|
| 232 | 232 | { |
|---|
| 233 | 233 | playlist_ItemDelete( p_playlist->status.p_item ); |
|---|
| | 234 | if( p_playlist->request.p_item == p_playlist->status.p_item ) |
|---|
| | 235 | p_playlist->request.p_item = NULL; |
|---|
| 234 | 236 | p_playlist->status.p_item = NULL; |
|---|
| 235 | 237 | } |
|---|