diff options
author | phintuka <phintuka> | 2006-09-03 13:56:47 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2006-09-03 13:56:47 +0000 |
commit | 4b15822ddc93075784d63ea1227d4681b160b866 (patch) | |
tree | 0f62bcce3f261baf249b3670f5cd93d395f3349f | |
parent | 64889549c347a968d9182127a15d5e7279767255 (diff) | |
download | xineliboutput-4b15822ddc93075784d63ea1227d4681b160b866.tar.gz xineliboutput-4b15822ddc93075784d63ea1227d4681b160b866.tar.bz2 |
Wire post plugins to slave stream if slave stream is open
-rw-r--r-- | xine/post.c | 12 |
1 files 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 |