From 4b15822ddc93075784d63ea1227d4681b160b866 Mon Sep 17 00:00:00 2001 From: phintuka Date: Sun, 3 Sep 2006 13:56:47 +0000 Subject: Wire post plugins to slave stream if slave stream is open --- xine/post.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/xine/post.c b/xine/post.c index fc0a27f6..b8e4a5ca 100644 --- a/xine/post.c +++ b/xine/post.c @@ -402,7 +402,10 @@ static void _vpplugin_unwire(fe_t *fe) { xine_post_out_t *vo_source; - vo_source = xine_get_video_source(fe->stream); + if(fe->slave_stream) + vo_source = xine_get_video_source(fe->slave_stream); + else + vo_source = xine_get_video_source(fe->stream); (void) xine_post_wire_video_port(vo_source, fe->video_port); } @@ -412,7 +415,10 @@ static void _applugin_unwire(fe_t *fe) { xine_post_out_t *ao_source; - ao_source = xine_get_audio_source(fe->stream); + if(fe->slave_stream) + ao_source = xine_get_audio_source(fe->slave_stream); + else + ao_source = xine_get_audio_source(fe->stream); (void) xine_post_wire_audio_port(ao_source, fe->audio_port); } @@ -451,7 +457,7 @@ static void _vpplugin_rewire_from_post_elements(fe_t *fe, post_element_t **post_ xine_post_wire_video_port(vo_source, post_elements[0]->post->video_input[1]); } - + if(fe->slave_stream) vo_source = xine_get_video_source(fe->slave_stream); else -- cgit v1.2.3