Changeset bbd88529842f240f4bbe8a66b2e4b8d4a554d75d
- Timestamp:
- 06/14/08 16:14:43
(3 months ago)
- Author:
- Pierre d'Herbemont <pdherbemont@videolan.org>
- git-committer:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1213452883 +0200
- git-parent:
[89237ca2e9266e3cbbd8f561585443eba4584c6d]
- git-author:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1213452663 +0200
- Message:
input: Don't do NotifyPlaylist?() now that the playlist properly listen to input item event.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd01611b |
rbbd8852 |
|
| 36 | 36 | |
|---|
| 37 | 37 | static void UpdateBookmarksOption( input_thread_t * ); |
|---|
| 38 | | static void NotifyPlaylist( input_thread_t * ); |
|---|
| 39 | 38 | |
|---|
| 40 | 39 | /**************************************************************************** |
|---|
| … | … | |
| 202 | 201 | if( !p_input->b_preparsing ) |
|---|
| 203 | 202 | { |
|---|
| 204 | | NotifyPlaylist( p_input ); |
|---|
| 205 | 203 | vlc_event_t event; |
|---|
| 206 | 204 | event.type = vlc_InputItemInfoChanged; |
|---|
| … | … | |
| 274 | 272 | if( !p_input->b_preparsing ) |
|---|
| 275 | 273 | { |
|---|
| 276 | | NotifyPlaylist( p_input ); |
|---|
| 277 | 274 | vlc_event_t event; |
|---|
| 278 | 275 | event.type = vlc_InputItemInfoChanged; |
|---|
| … | … | |
| 310 | 307 | if( !p_input->b_preparsing ) |
|---|
| 311 | 308 | { |
|---|
| 312 | | NotifyPlaylist( p_input ); |
|---|
| 313 | 309 | vlc_event_t event; |
|---|
| 314 | 310 | event.type = vlc_InputItemNameChanged; |
|---|
| … | … | |
| 609 | 605 | return VLC_EGENERIC; |
|---|
| 610 | 606 | } |
|---|
| 611 | | } |
|---|
| 612 | | |
|---|
| 613 | | static void NotifyPlaylist( input_thread_t *p_input ) |
|---|
| 614 | | { |
|---|
| 615 | | /* FIXME: We need to avoid that dependency on the playlist |
|---|
| 616 | | * because it is a circular dependency: |
|---|
| 617 | | * ( playlist -> input -> playlist ) */ |
|---|
| 618 | | playlist_t *p_playlist = pl_Yield( p_input ); |
|---|
| 619 | | if( VLC_OBJECT(p_playlist) == p_input->p_parent ) |
|---|
| 620 | | var_SetInteger( p_playlist, "item-change", |
|---|
| 621 | | p_input->p->input.p_item->i_id ); |
|---|
| 622 | | pl_Release( p_input ); |
|---|
| 623 | 607 | } |
|---|
| 624 | 608 | |
|---|