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/video_out.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/video_out.c')
-rw-r--r-- | src/xine-engine/video_out.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c index dbe56b13c..71068a958 100644 --- a/src/xine-engine/video_out.c +++ b/src/xine-engine/video_out.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: video_out.c,v 1.125 2002/12/23 21:04:02 miguelfreitas Exp $ + * $Id: video_out.c,v 1.126 2002/12/27 03:40:07 miguelfreitas Exp $ * * frame allocation / queuing / scheduling / output functions */ @@ -933,6 +933,25 @@ static void vo_close (xine_video_port_t *this_gen, xine_stream_t *stream) { pthread_mutex_unlock(&this->streams_lock); } +static int vo_status (xine_video_port_t *this_gen, xine_stream_t *stream) { + + vos_t *this = (vos_t *) this_gen; + xine_stream_t *cur; + int ret = 0; + + pthread_mutex_lock(&this->streams_lock); + for (cur = xine_list_first_content(this->streams); cur; + cur = xine_list_next_content(this->streams)) + if (cur == stream) { + ret = 1; + break; + } + pthread_mutex_unlock(&this->streams_lock); + + return ret; +} + + static void vo_free_img_buffers (xine_video_port_t *this_gen) { vos_t *this = (vos_t *) this_gen; vo_frame_t *img; @@ -1068,6 +1087,7 @@ xine_video_port_t *vo_new_port (xine_t *xine, vo_driver_t *driver) { this->vo.enable_ovl = vo_enable_overlay; this->vo.get_overlay_instance = vo_get_overlay_instance; this->vo.flush = vo_flush; + this->vo.status = vo_status; this->vo.driver = driver; this->num_frames_delivered = 0; |