1 /*****************************************************************************
2 * intf.c: interface for CMML annotations/hyperlinks
3 *****************************************************************************
4 * Copyright (C) 2003-2004 Commonwealth Scientific and Industrial Research
5 * Organisation (CSIRO) Australia
6 * Copyright (C) 2004 the VideoLAN team
10 * Authors: Andre Pang <Andre.Pang@csiro.au>
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
25 *****************************************************************************/
27 /*****************************************************************************
29 *****************************************************************************/
39 #include <vlc_codec.h>
40 #include <vlc_input.h>
41 #include <vlc_interface.h>
43 #include <vlc_playlist.h>
48 #include "browser_open.h"
53 #undef CMML_INTF_USE_TIMED_URIS
55 #undef CMML_INTF_DEBUG
56 #undef CMML_INTF_HISTORY_DEBUG
58 /*****************************************************************************
59 * intf_sys_t: description and status of interface
60 *****************************************************************************/
63 decoder_t * p_cmml_decoder;
64 input_thread_t * p_input;
66 vlc_bool_t b_key_pressed;
69 struct navigation_history_t
75 /*****************************************************************************
77 *****************************************************************************/
78 static int InitThread ( intf_thread_t * );
79 static int MouseEvent ( vlc_object_t *, char const *,
80 vlc_value_t, vlc_value_t, void * );
81 static int KeyEvent ( vlc_object_t *, char const *,
82 vlc_value_t, vlc_value_t, void * );
84 static void FollowAnchor ( intf_thread_t * );
85 static void GoBack ( intf_thread_t * );
86 static void GoForward ( intf_thread_t * );
88 static int FollowAnchorCallback ( vlc_object_t *, char const *,
89 vlc_value_t, vlc_value_t, void * );
90 static int GoBackCallback ( vlc_object_t *, char const *,
91 vlc_value_t, vlc_value_t, void * );
92 static int GoForwardCallback ( vlc_object_t *, char const *,
93 vlc_value_t, vlc_value_t, void * );
95 static char *GetTimedURLFromPlaylistItem( intf_thread_t *, playlist_item_t * );
96 static char *GetTimedURIFragmentForTime ( int );
97 static int GetCurrentTimeInSeconds ( input_thread_t * );
98 static int DisplayAnchor ( intf_thread_t *, vout_thread_t *,
100 static int DisplayPendingAnchor ( intf_thread_t *, vout_thread_t * );
101 static history_t * GetHistory ( playlist_t * );
102 static void ReplacePlaylistItem ( playlist_t *, char * );
104 /* Exported functions */
105 static void RunIntf ( intf_thread_t *p_intf );
107 /*****************************************************************************
108 * OpenIntf: initialize CMML interface
109 *****************************************************************************/
110 int E_(OpenIntf) ( vlc_object_t *p_this )
112 intf_thread_t *p_intf = (intf_thread_t *)p_this;
114 p_intf->p_sys = malloc( sizeof( intf_sys_t ) );
115 if( p_intf->p_sys == NULL )
120 p_intf->pf_run = RunIntf;
122 var_AddCallback( p_intf->p_libvlc, "key-pressed", KeyEvent, p_intf );
123 /* we also need to add the callback for "mouse-clicked", but do that later
124 * when we've found a p_vout */
126 var_Create( p_intf->p_libvlc, "browse-go-back", VLC_VAR_VOID );
127 var_AddCallback( p_intf->p_libvlc, "browse-go-back",
128 GoBackCallback, p_intf );
129 var_Create( p_intf->p_libvlc, "browse-go-forward", VLC_VAR_VOID );
130 var_AddCallback( p_intf->p_libvlc, "browse-go-forward",
131 GoForwardCallback, p_intf );
132 var_Create( p_intf->p_libvlc, "browse-follow-anchor", VLC_VAR_VOID );
133 var_AddCallback( p_intf->p_libvlc, "browse-follow-anchor",
134 FollowAnchorCallback, p_intf );
139 /*****************************************************************************
140 * CloseIntf: destroy dummy interface
141 *****************************************************************************/
142 void E_(CloseIntf) ( vlc_object_t *p_this )
144 intf_thread_t * p_intf = (intf_thread_t *)p_this;
145 vout_thread_t * p_vout;
147 #ifdef CMML_INTF_DEBUG
148 msg_Dbg( p_intf, "freeing CMML interface" );
151 /* erase the anchor text description from the video output if it exists */
152 p_vout = vlc_object_find( p_intf, VLC_OBJECT_VOUT, FIND_ANYWHERE );
155 /* enable CMML as a subtitle track */
156 spu_Control( p_vout->p_spu, SPU_CHANNEL_CLEAR, DEFAULT_CHAN );
157 vlc_object_release( p_vout );
160 var_DelCallback( p_intf->p_libvlc, "key-pressed", KeyEvent, p_intf );
162 vlc_object_release( p_intf->p_sys->p_cmml_decoder );
164 free( p_intf->p_sys );
168 /*****************************************************************************
170 *****************************************************************************/
171 static void RunIntf( intf_thread_t *p_intf )
173 vout_thread_t * p_vout = NULL;
175 if( InitThread( p_intf ) < 0 )
177 msg_Err( p_intf, "can't initialize CMML interface" );
180 #ifdef CMML_INTF_DEBUG
181 msg_Dbg( p_intf, "CMML intf initialized" );
184 /* if video output is dying, disassociate ourselves from it */
185 if( p_vout && p_vout->b_die )
187 var_DelCallback( p_vout, "mouse-clicked", MouseEvent, p_intf );
188 vlc_object_release( p_vout );
193 while( !p_intf->b_die )
196 /* find a video output if we currently don't have one */
199 p_vout = vlc_object_find( p_intf->p_sys->p_input,
200 VLC_OBJECT_VOUT, FIND_CHILD );
203 #ifdef CMML_INTF_DEBUG
204 msg_Dbg( p_intf, "found vout thread" );
206 var_AddCallback( p_vout, "mouse-clicked", MouseEvent, p_intf );
210 vlc_mutex_lock( &p_intf->change_lock );
215 if( p_intf->p_sys->b_key_pressed )
218 int i, i_action = -1;
219 struct hotkey *p_hotkeys = p_intf->p_libvlc->p_hotkeys;
221 /* Find action triggered by hotkey (if any) */
222 var_Get( p_intf->p_libvlc, "key-pressed", &val );
224 /* Acknowledge that we've handled the b_key_pressed event */
225 p_intf->p_sys->b_key_pressed = VLC_FALSE;
227 #ifdef CMML_INTF_DEBUG
228 msg_Dbg( p_intf, "Got a keypress: %d", val.i_int );
231 for( i = 0; p_hotkeys[i].psz_action != NULL; i++ )
233 if( p_hotkeys[i].i_key == val.i_int )
234 i_action = p_hotkeys[i].i_action;
237 /* What did the user do? */
242 case ACTIONID_NAV_ACTIVATE:
243 FollowAnchor( p_intf );
245 case ACTIONID_HISTORY_BACK:
248 case ACTIONID_HISTORY_FORWARD:
257 vlc_mutex_unlock( &p_intf->change_lock );
259 (void) DisplayPendingAnchor( p_intf, p_vout );
262 msleep( INTF_IDLE_SLEEP );
265 /* if we're here, the video output is dying: release the vout object */
269 var_DelCallback( p_vout, "mouse-clicked", MouseEvent, p_intf );
270 vlc_object_release( p_vout );
273 vlc_object_release( p_intf->p_sys->p_input );
276 /*****************************************************************************
277 * DisplayPendingAnchor: get a pending anchor description/URL from the CMML
278 * decoder and display it on screen
279 *****************************************************************************/
280 static int DisplayPendingAnchor( intf_thread_t *p_intf, vout_thread_t *p_vout )
282 decoder_t *p_cmml_decoder;
283 char *psz_description = NULL;
284 char *psz_url = NULL;
286 intf_thread_t *p_primary_intf;
289 p_cmml_decoder = p_intf->p_sys->p_cmml_decoder;
290 if( var_Get( p_cmml_decoder, "psz-current-anchor-description", &val )
299 psz_description = val.p_address;
301 if( var_Get( p_cmml_decoder, "psz-current-anchor-url", &val )
304 psz_url = val.p_address;
309 /* don't display anchor if main interface can display it */
310 p_primary_intf = vlc_object_find( p_intf->p_libvlc, VLC_OBJECT_INTF,
315 if( var_Get( p_primary_intf, "intf-displays-cmml-description", &val )
318 if( val.b_bool == VLC_TRUE )
320 vlc_object_release( p_primary_intf );
325 vlc_object_release( p_primary_intf );
328 /* display anchor as subtitle on-screen */
329 if( DisplayAnchor( p_intf, p_vout, psz_description, psz_url )
332 /* text render unsuccessful: do nothing */
336 /* text render successful: clear description */
337 val.p_address = NULL;
338 if( var_Set( p_cmml_decoder, "psz-current-anchor-description", val )
342 "reset of psz-current-anchor-description failed" );
344 free( psz_description );
352 /*****************************************************************************
354 *****************************************************************************/
355 static int InitThread( intf_thread_t * p_intf )
357 /* We might need some locking here */
360 input_thread_t * p_input;
361 decoder_t *p_cmml_decoder;
363 p_cmml_decoder = vlc_object_find( p_intf, VLC_OBJECT_DECODER, FIND_PARENT );
364 p_input = vlc_object_find( p_intf, VLC_OBJECT_INPUT, FIND_PARENT );
366 #ifdef CMML_INTF_DEBUG
367 msg_Dbg( p_intf, "cmml decoder at %p, input thread at %p",
368 p_cmml_decoder, p_input );
371 /* Maybe the input just died */
372 if( p_input == NULL )
377 vlc_mutex_lock( &p_intf->change_lock );
379 p_intf->p_sys->p_input = p_input;
380 p_intf->p_sys->p_cmml_decoder = p_cmml_decoder;
382 p_intf->p_sys->b_key_pressed = VLC_FALSE;
384 vlc_mutex_unlock( &p_intf->change_lock );
394 /*****************************************************************************
395 * MouseEvent: callback for mouse events
396 *****************************************************************************/
397 static int MouseEvent( vlc_object_t *p_this, char const *psz_var,
398 vlc_value_t oldval, vlc_value_t newval, void *p_data )
400 /* TODO: handle mouse clicks on the anchor text */
405 /*****************************************************************************
406 * KeyEvent: callback for keyboard events
407 *****************************************************************************/
408 static int KeyEvent( vlc_object_t *p_this, char const *psz_var,
409 vlc_value_t oldval, vlc_value_t newval, void *p_data )
411 intf_thread_t *p_intf = (intf_thread_t *)p_data;
412 vlc_mutex_lock( &p_intf->change_lock );
414 p_intf->p_sys->b_key_pressed = VLC_TRUE;
416 vlc_mutex_unlock( &p_intf->change_lock );
421 /*****************************************************************************
422 * FollowAnchor: follow the current anchor being displayed to the user
423 *****************************************************************************/
424 static void FollowAnchor ( intf_thread_t *p_intf )
427 decoder_t *p_cmml_decoder;
428 char *psz_url = NULL;
431 msg_Dbg( p_intf, "User followed anchor" );
433 p_sys = p_intf->p_sys;
434 p_cmml_decoder = p_sys->p_cmml_decoder;
436 if( var_Get( p_cmml_decoder, "psz-current-anchor-url", &val ) ==
439 if( val.p_address ) psz_url = val.p_address;
442 #ifdef CMML_INTF_DEBUG
443 msg_Dbg( p_intf, "Current URL is \"%s\"", psz_url );
448 playlist_t *p_playlist;
449 playlist_item_t *p_current_item;
450 char *psz_uri_to_load;
454 p_playlist = (playlist_t *) vlc_object_find( p_intf,
455 VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
458 msg_Warn( p_intf, "can't find playlist" );
463 p_current_item = p_playlist->status.p_item;
464 #ifdef CMML_INTF_DEBUG
465 msg_Dbg( p_intf, "Current playlist item URL is \"%s\"",
466 p_current_item->input.psz_uri );
469 psz_uri_to_load = XURL_Concat( p_current_item->p_input->psz_uri,
472 #ifdef CMML_INTF_DEBUG
473 msg_Dbg( p_intf, "URL to load is \"%s\"", psz_uri_to_load );
476 if( var_Get( p_intf->p_sys->p_input, "time", &time ) )
478 msg_Dbg( p_intf, "couldn't get time from current clip" );
481 i_seconds = time.i_time / 1000000;
482 #ifdef CMML_INTF_DEBUG
483 msg_Dbg( p_intf, "Current time is \"%lld\"", i_seconds );
486 /* TODO: we need a (much) more robust way of detecting whether
487 * the file's a media file ... */
488 if( strstr( psz_uri_to_load, ".anx" ) != NULL )
490 history_t *p_history = NULL;
491 history_item_t *p_history_item = NULL;
494 p_history = GetHistory( p_playlist );
496 /* create history item */
497 psz_timed_url = GetTimedURLFromPlaylistItem( p_intf, p_current_item );
498 p_history_item = historyItem_New( psz_timed_url, psz_timed_url );
499 free( psz_timed_url );
501 if( !p_history_item )
503 msg_Warn( p_intf, "could not initialise history item" );
507 #ifdef CMML_INTF_DEBUG
508 msg_Dbg( p_intf, "history pre-index %d", p_history->i_index );
510 history_PruneAndInsert( p_history, p_history_item );
511 #ifdef CMML_INTF_DEBUG
512 msg_Dbg( p_intf, "new history item at %p, uri is \"%s\"",
513 p_history_item, p_history_item->psz_uri );
514 msg_Dbg( p_intf, "history index now %d", p_history->i_index );
518 /* free current-anchor-url */
520 val.p_address = NULL;
521 if( var_Set( p_cmml_decoder, "psz-current-anchor-url", val ) !=
524 msg_Dbg( p_intf, "couldn't reset psz-current-anchor-url" );
527 ReplacePlaylistItem( p_playlist, psz_uri_to_load );
531 #ifdef CMML_INTF_DEBUG
532 msg_Dbg( p_intf, "calling browser_Open with \"%s\"", psz_url );
534 (void) browser_Open( psz_url );
535 playlist_Control( p_playlist, PLAYLIST_PAUSE, VLC_TRUE, 0 );
538 free( psz_uri_to_load );
540 vlc_object_release( p_playlist );
545 char *GetTimedURLFromPlaylistItem( intf_thread_t *p_intf,
546 playlist_item_t *p_current_item )
548 #ifdef CMML_INTF_USE_TIMED_URIS
549 char *psz_url = NULL;
550 char *psz_return_value = NULL;
551 char *psz_seconds = NULL;
554 psz_url = XURL_GetWithoutFragment( p_current_item->input->psz_uri );
556 /* Get current time as a string */
557 if( XURL_IsFileURL( psz_url ) == VLC_TRUE )
558 psz_url = xstrcat( psz_url, "#" );
560 psz_url = xstrcat( psz_url, "?" );
562 /* jump back to 2 seconds before where we are now */
563 i_seconds = GetCurrentTimeInSeconds( p_intf->p_sys->p_input ) - 2;
564 psz_seconds = GetTimedURIFragmentForTime( i_seconds < 0 ? 0 : i_seconds );
567 psz_url = xstrcat( psz_url, psz_seconds );
569 psz_return_value = psz_url;
572 return psz_return_value;
576 /* Suppress warning messages about unused functions */
577 p = GetTimedURIFragmentForTime; /* unused */
578 p = GetCurrentTimeInSeconds; /* unused */
580 return strdup( p_current_item->p_input->psz_uri );
586 * Get the current time, rounded down to the nearest second
588 * http://www.ietf.org/internet-drafts/draft-pfeiffer-temporal-fragments-02.txt
591 int GetCurrentTimeInSeconds( input_thread_t *p_input )
596 var_Get( p_input, "time", &time );
597 i_seconds = time.i_time / 1000000;
602 char *GetTimedURIFragmentForTime( int seconds )
606 asprintf( &psz_time, "%d", seconds );
611 int GoBackCallback( vlc_object_t *p_this, char const *psz_var,
612 vlc_value_t oldval, vlc_value_t newval, void *p_data )
614 intf_thread_t *p_intf = (intf_thread_t *) p_data;
620 int GoForwardCallback( vlc_object_t *p_this, char const *psz_var,
621 vlc_value_t oldval, vlc_value_t newval, void *p_data )
623 intf_thread_t *p_intf = (intf_thread_t *) p_data;
629 int FollowAnchorCallback( vlc_object_t *p_this, char const *psz_var,
630 vlc_value_t oldval, vlc_value_t newval,
633 intf_thread_t *p_intf = (intf_thread_t *) p_data;
634 FollowAnchor( p_intf );
639 void GoBack( intf_thread_t *p_intf )
642 history_t *p_history = NULL;
643 history_item_t *p_history_item = NULL;
644 history_item_t *p_new_history_item = NULL;
645 playlist_t *p_playlist = NULL;
646 char *psz_timed_url = NULL;
647 playlist_item_t *p_current_item;
649 #ifdef CMML_INTF_DEBUG
650 msg_Dbg( p_intf, "Going back in navigation history" );
653 /* Find the playlist */
654 p_playlist = (playlist_t *) vlc_object_find( p_intf,
655 VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
658 msg_Warn( p_intf, "can't find playlist" );
662 /* Retrieve navigation history from playlist */
663 if( var_Get( p_playlist, "navigation-history", &history ) != VLC_SUCCESS ||
666 /* History doesn't exist yet: ignore user's request */
667 msg_Warn( p_intf, "can't go back: no history exists yet" );
668 vlc_object_release( p_playlist );
672 p_history = history.p_address;
673 #ifdef CMML_INTF_DEBUG
674 msg_Dbg( p_intf, "back: nav history retrieved from %p", p_history );
675 msg_Dbg( p_intf, "nav history index:%d, p_xarray:%p", p_history->i_index,
676 p_history->p_xarray );
679 /* Check whether we can go back in the history */
680 if( history_CanGoBack( p_history ) == VLC_FALSE )
682 msg_Warn( p_intf, "can't go back: already at beginning of history" );
683 vlc_object_release( p_playlist );
687 p_current_item = p_playlist->status.p_item;
689 /* Save the currently-playing media in a new history item */
690 psz_timed_url = GetTimedURLFromPlaylistItem( p_intf, p_current_item );
691 p_new_history_item = historyItem_New( psz_timed_url, psz_timed_url );
692 free( psz_timed_url );
694 if( !p_new_history_item )
696 #ifdef CMML_INTF_DEBUG
697 msg_Dbg( p_intf, "back: could not initialise new history item" );
699 vlc_object_release( p_playlist );
703 /* Go back in the history, saving the currently-playing item */
704 (void) history_GoBackSavingCurrentItem( p_history, p_new_history_item );
705 p_history_item = history_Item( p_history );
707 #ifdef CMML_INTF_DEBUG
708 msg_Dbg( p_intf, "retrieving item from h index %d", p_history->i_index );
709 msg_Dbg( p_intf, "got previous history item: %p", p_history_item );
710 msg_Dbg( p_intf, "prev history item URL: \"%s\"", p_history_item->psz_uri );
713 ReplacePlaylistItem( p_playlist, p_history_item->psz_uri );
714 vlc_object_release( p_playlist );
718 void GoForward( intf_thread_t *p_intf )
721 history_t *p_history = NULL;
722 history_item_t *p_history_item = NULL;
723 history_item_t *p_new_history_item = NULL;
724 playlist_t *p_playlist = NULL;
725 playlist_item_t *p_current_item;
727 #ifdef CMML_INTF_DEBUG
728 msg_Dbg( p_intf, "Going forward in navigation history" );
731 /* Find the playlist */
732 p_playlist = (playlist_t *) vlc_object_find( p_intf,
733 VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
736 msg_Warn( p_intf, "can't find playlist" );
740 /* Retrieve navigation history from playlist */
741 if( var_Get( p_playlist, "navigation-history", &history ) != VLC_SUCCESS ||
744 /* History doesn't exist yet: ignore user's request */
745 msg_Warn( p_intf, "can't go back: no history exists yet" );
746 vlc_object_release( p_playlist );
750 p_history = history.p_address;
751 #ifdef CMML_INTF_DEBUG
752 msg_Dbg( p_intf, "forward: nav history retrieved from %p", p_history );
753 msg_Dbg( p_intf, "nav history index:%d, p_xarray:%p", p_history->i_index,
754 p_history->p_xarray );
757 /* Check whether we can go forward in the history */
758 if( history_CanGoForward( p_history ) == VLC_FALSE )
760 msg_Warn( p_intf, "can't go forward: already at end of history" );
761 vlc_object_release( p_playlist );
765 /* Save the currently-playing media in a new history item */
766 p_new_history_item = malloc( sizeof(history_item_t) );
767 if( !p_new_history_item )
769 #ifdef CMML_INTF_DEBUG
770 msg_Dbg( p_intf, "forward: could not initialise new history item" );
772 vlc_object_release( p_playlist );
775 p_current_item = p_playlist->status.p_item;
776 p_new_history_item->psz_uri = GetTimedURLFromPlaylistItem( p_intf,
778 p_new_history_item->psz_name = p_new_history_item->psz_uri;
780 /* Go forward in the history, saving the currently-playing item */
781 (void) history_GoForwardSavingCurrentItem( p_history, p_new_history_item );
782 p_history_item = history_Item( p_history );
784 #ifdef CMML_INTF_DEBUG
785 msg_Dbg( p_intf, "retrieving item from h index %d", p_history->i_index );
786 msg_Dbg( p_intf, "got next history item: %p", p_history_item );
787 msg_Dbg( p_intf, "next history item URL: \"%s\"", p_history_item->psz_uri );
790 ReplacePlaylistItem( p_playlist, p_history_item->psz_uri );
791 vlc_object_release( p_playlist );
794 static void ReplacePlaylistItem( playlist_t *p_playlist, char *psz_uri )
796 playlist_Stop( p_playlist );
797 (void) playlist_Add( p_playlist, psz_uri, psz_uri,
798 PLAYLIST_INSERT /* FIXME: used to be PLAYLIST_REPLACE */, PLAYLIST_END|PLAYLIST_GO, VLC_TRUE /* FIXME: p_playlist->status.i_index */,
802 /****************************************************************************
803 * DisplayAnchor: displays an anchor on the given video output
804 ****************************************************************************/
805 static int DisplayAnchor( intf_thread_t *p_intf,
806 vout_thread_t *p_vout,
807 char *psz_anchor_description,
808 char *psz_anchor_url )
810 int i_margin_h, i_margin_v;
822 /* Should display subtitle underlined and in blue, but it looks
823 * like VLC doesn't implement any text styles yet. D'oh! */
824 // p_style = &blue_with_underline;
828 /* TODO: p_subpicture doesn't have the proper i_x and i_y
829 * coordinates. Need to look at the subpicture display system to
831 if ( vout_ShowTextAbsolute( p_vout, DEFAULT_CHAN,
832 psz_anchor_description, NULL, OSD_ALIGN_BOTTOM,
833 i_margin_h, i_margin_v, i_now, 0 ) == VLC_SUCCESS )
835 /* Displayed successfully */
844 msg_Dbg( p_intf, "DisplayAnchor couldn't find a video output" );
851 static history_t * GetHistory( playlist_t *p_playlist )
854 history_t *p_history = NULL;
856 if( var_Get( p_playlist, "navigation-history", &val ) != VLC_SUCCESS )
858 /* history doesn't exist yet: need to create it */
859 history_t *new_history = history_New();
860 val.p_address = new_history;
861 var_Create( p_playlist, "navigation-history",
862 VLC_VAR_ADDRESS|VLC_VAR_DOINHERIT );
863 if( var_Set( p_playlist, "navigation-history", val ) != VLC_SUCCESS )
865 msg_Warn( p_playlist, "could not initialise history" );
869 p_history = new_history;
870 #ifdef CMML_INTF_HISTORY_DEBUG
871 msg_Dbg( p_playlist, "nav history created at %p", new_history );
872 msg_Dbg( p_playlist, "nav history index:%d, p_xarray:%p",
873 p_history->i_index, p_history->p_xarray );
879 p_history = val.p_address;
880 #ifdef CMML_INTF_HISTORY_DEBUG
881 msg_Dbg( p_playlist, "nav history retrieved from %p", p_history );