diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-12-27 03:40:07 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-12-27 03:40:07 +0000 |
commit | 34b80110e86716725dd815250ea9075129e7b2ee (patch) | |
tree | d95b38ff1b119017860788946c80c9167c2c6969 /src/xine-engine/xine_interface.c | |
parent | f4c8273538ebe374ecd2524d8fb6789fd3fb5796 (diff) | |
download | xine-lib-34b80110e86716725dd815250ea9075129e7b2ee.tar.gz xine-lib-34b80110e86716725dd815250ea9075129e7b2ee.tar.bz2 |
quite experimental changes on post plugin api to enable rewiring
of streams.
Michael, please let me know if you have a better idea! :)
CVS patchset: 3689
CVS date: 2002/12/27 03:40:07
Diffstat (limited to 'src/xine-engine/xine_interface.c')
-rw-r--r-- | src/xine-engine/xine_interface.c | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/src/xine-engine/xine_interface.c b/src/xine-engine/xine_interface.c index 122befb41..70ae17f8e 100644 --- a/src/xine-engine/xine_interface.c +++ b/src/xine-engine/xine_interface.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_interface.c,v 1.35 2002/12/25 15:02:23 mroi Exp $ + * $Id: xine_interface.c,v 1.36 2002/12/27 03:40:08 miguelfreitas Exp $ * * convenience/abstraction layer, functions to implement * libxine's public interface @@ -646,3 +646,38 @@ int xine_post_wire(xine_post_out_t *source, xine_post_in_t *target) { } return 0; } + +int xine_post_wire_video_port(xine_post_out_t *source, xine_video_port_t *vo) { + if (source && source->rewire) { + if (vo) { + if (source->type == XINE_POST_DATA_VIDEO) + return source->rewire(source, vo); + else + return 0; + } else + return source->rewire(source, NULL); + } + return 0; +} + +int xine_post_wire_audio_port(xine_post_out_t *source, xine_audio_port_t *ao) { + if (source && source->rewire) { + if (ao) { + if (source->type == XINE_POST_DATA_AUDIO) + return source->rewire(source, ao); + else + return 0; + } else + return source->rewire(source, NULL); + } + return 0; +} + +xine_post_out_t * xine_get_video_source(xine_stream_t *stream) { + return &stream->video_source; +} + +xine_post_out_t * xine_get_audio_source(xine_stream_t *stream) { + return &stream->audio_source; +} + |