From: Michael R. <mr...@us...> - 2004-02-12 19:31:03
|
Update of /cvsroot/xine/xine-ui/src/fb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15032/src/fb Modified Files: post.c Log Message: all the nasty hacks in to avoid freezing rewires are not needed any more Index: post.c =================================================================== RCS file: /cvsroot/xine/xine-ui/src/fb/post.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- post.c 1 Dec 2003 17:23:27 -0000 1.4 +++ post.c 12 Feb 2004 19:25:52 -0000 1.5 @@ -279,22 +279,10 @@ static void _pplugin_unwire(void) { xine_post_out_t *vo_source; - int paused = 0; vo_source = xine_get_video_source(fbxine.stream); - if((paused = (xine_get_param(fbxine.stream, XINE_PARAM_SPEED) == XINE_SPEED_PAUSE))) - xine_set_param(fbxine.stream, XINE_PARAM_SPEED, XINE_SPEED_SLOW_4); - (void) xine_post_wire_video_port(vo_source, fbxine.video_port); - - if(paused) - xine_set_param(fbxine.stream, XINE_PARAM_SPEED, XINE_SPEED_PAUSE); - - /* Waiting a small chunk of time helps to avoid crashing */ - xine_usec_sleep(500000); - - } @@ -303,10 +291,6 @@ if(post_elements_num) { xine_post_out_t *vo_source; int i = 0; - int paused = 0; - - if((paused = (xine_get_param(fbxine.stream, XINE_PARAM_SPEED) == XINE_SPEED_PAUSE))) - xine_set_param(fbxine.stream, XINE_PARAM_SPEED, XINE_SPEED_SLOW_4); for(i = (post_elements_num - 1); i >= 0; i--) { @@ -325,10 +309,6 @@ vo_source = xine_get_video_source(fbxine.stream); xine_post_wire_video_port(vo_source, post_elements[0]->post->video_input[0]); - - if(paused) - xine_set_param(fbxine.stream, XINE_PARAM_SPEED, XINE_SPEED_PAUSE); - } } |