From: Miguel F. <mig...@us...> - 2005-10-30 02:19:40
|
Update of /cvsroot/xine/xine-ui/src/xitk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14740/src/xitk Modified Files: actions.c main.c Log Message: support gapless playback while switching streams (requires xine-lib >= 1.1.1) reference implementation Index: actions.c =================================================================== RCS file: /cvsroot/xine/xine-ui/src/xitk/actions.c,v retrieving revision 1.264 retrieving revision 1.265 diff -u -r1.264 -r1.265 --- actions.c 20 Aug 2005 02:40:21 -0000 1.264 +++ actions.c 30 Oct 2005 02:19:32 -0000 1.265 @@ -516,7 +516,12 @@ } if(!xine_open(gGui->stream, (const char *) mrl)) { - + +#ifdef XINE_PARAM_GAPLESS_SWITCH + if( xine_check_version(1,1,1) ) + xine_set_param(gGui->stream, XINE_PARAM_GAPLESS_SWITCH, 0); +#endif + if(!strcmp(mrl, gGui->mmk.mrl)) gGui->playlist.mmk[gGui->playlist.cur]->played = 1; Index: main.c =================================================================== RCS file: /cvsroot/xine/xine-ui/src/xitk/main.c,v retrieving revision 1.309 retrieving revision 1.310 diff -u -r1.309 -r1.310 --- main.c 1 Aug 2005 23:49:53 -0000 1.309 +++ main.c 30 Oct 2005 02:19:32 -0000 1.310 @@ -1018,7 +1018,10 @@ /* frontend can e.g. move on to next playlist entry */ case XINE_EVENT_UI_PLAYBACK_FINISHED: if(event->stream == gGui->stream) { - +#ifdef XINE_PARAM_GAPLESS_SWITCH + if( xine_check_version(1,1,1) ) + xine_set_param(gGui->stream, XINE_PARAM_GAPLESS_SWITCH, 1); +#endif gui_playlist_start_next(); } else if(event->stream == gGui->visual_anim.stream) { @@ -2081,6 +2084,10 @@ post_init(); gGui->stream = xine_stream_new(gGui->xine, gGui->ao_port, gGui->vo_port); +#ifdef XINE_PARAM_EARLY_FINISHED_EVENT + if( xine_check_version(1,1,1) ) + xine_set_param(gGui->stream, XINE_PARAM_EARLY_FINISHED_EVENT, 1); +#endif /* Store audio mixer level */ if(gGui->ao_port && (gGui->mixer.method == SOUND_CARD_MIXER)) |