Changeset d3d776685b767f1a4648d66e5ba00c495c69cb19
- Timestamp:
- 05/07/08 20:38:43 (4 months ago)
- git-parent:
- Files:
-
- include/vlc_playlist.h (modified) (1 diff)
- src/input/input.c (modified) (3 diffs)
- src/video_output/video_output.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
include/vlc_playlist.h
r722ab9f rd3d7766 263 263 #define PL_UNLOCK vlc_object_unlock( p_playlist ) 264 264 265 #define pl_Get( a ) a->p_libvlc->p_playlist266 267 265 VLC_EXPORT( playlist_t *, __pl_Yield, ( vlc_object_t * ) ); 268 266 #define pl_Yield( a ) __pl_Yield( VLC_OBJECT(a) ) src/input/input.c
r6b42b42 rd3d7766 554 554 /* We have finished */ 555 555 p_input->b_eof = true; 556 playlist_Signal( p l_Get( p_input ));556 playlist_Signal( p_input->p_libvlc->p_playlist ); 557 557 } 558 558 … … 2111 2111 access_Control( p_input->p->input.p_access,ACCESS_GET_META, p_meta ); 2112 2112 InputUpdateMeta( p_input, p_meta ); 2113 var_SetInteger( p l_Get( p_input ), "item-change", p_input->p->input.p_item->i_id );2113 var_SetInteger( p_input->p_libvlc->p_playlist, "item-change", p_input->p->input.p_item->i_id ); 2114 2114 p_access->info.i_update &= ~INPUT_UPDATE_META; 2115 2115 } … … 2154 2154 { 2155 2155 pl_Yield( p_input ); 2156 var_SetInteger( p l_Get( p_input ), "item-change",2156 var_SetInteger( p_input->p_libvlc->p_playlist, "item-change", 2157 2157 p_input->p->input.p_item->i_id ); 2158 2158 pl_Release( p_input ); src/video_output/video_output.c
r6da90a1 rd3d7766 510 510 vout_thread_t *p_another_vout; 511 511 512 playlist_t *p_playlist = pl_ Get( p_vout );513 if( p_playlist->b_die ) return;514 vlc_object_yield( p_playlist );515 /* This is a dirty hack for mostly Linux, where there is no way to get the GUI 516 back if you closed it while playing video. This is solved in Mac OS X,517 where we have this novelty called menubar, that will always allow you access518 to the applications main functionality. They should try that on linux sometime */519 p_another_vout = vlc_object_find( p_this->p_libvlc,520 VLC_OBJECT_VOUT, FIND_ANYWHERE );521 if( p_another_vout == NULL )522 {523 vlc_value_t val;524 val.b_bool = true;525 var_Set( p_playlist, "intf-show", val );526 }512 playlist_t *p_playlist = pl_Yield( p_vout ); 513 if( p_playlist->b_die ) 514 { 515 pl_Release( p_vout ); 516 return; 517 } 518 /* This is a dirty hack mostly for Linux, where there is no way to get the 519 * GUI back if you closed it while playing video. This is solved in 520 * Mac OS X, where we have this novelty called menubar, that will always 521 * allow you access to the applications main functionality. They should try 522 * that on linux sometime. */ 523 p_another_vout = vlc_object_find( p_this->p_libvlc, 524 VLC_OBJECT_VOUT, FIND_ANYWHERE ); 525 if( p_another_vout == NULL ) 526 var_SetBool( p_playlist, "intf-show", true ); 527 527 else 528 {529 528 vlc_object_release( p_another_vout ); 530 } 531 vlc_object_release( p_playlist ); 529 pl_Release( p_vout ); 532 530 #endif 533 531 }
