diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-02-12 22:22:31 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-02-12 22:22:31 +0000 |
commit | 3fdd154b51d355b4731084d8caa4f5b5a1958ced (patch) | |
tree | 9f20f3161f05803c15addcf44f87e18d1f9caec2 | |
parent | 18d53b56f5038bee8a2db36743aadbfa43eda134 (diff) | |
download | xine-lib-3fdd154b51d355b4731084d8caa4f5b5a1958ced.tar.gz xine-lib-3fdd154b51d355b4731084d8caa4f5b5a1958ced.tar.bz2 |
new method to pass gui messages to video driver.
only really advanced frontends (like having multiple video outputs) will need this.
old method is still supported for 1.0 api.
CVS patchset: 4140
CVS date: 2003/02/12 22:22:31
-rw-r--r-- | include/xine.h.in | 8 | ||||
-rw-r--r-- | src/xine-engine/xine_interface.c | 9 |
2 files changed, 14 insertions, 3 deletions
diff --git a/include/xine.h.in b/include/xine.h.in index ce19ddb56..232d47429 100644 --- a/include/xine.h.in +++ b/include/xine.h.in @@ -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.h.in,v 1.59 2003/02/11 16:42:40 miguelfreitas Exp $ + * $Id: xine.h.in,v 1.60 2003/02/12 22:22:31 miguelfreitas Exp $ * * public xine-lib (libxine) interface and documentation * @@ -838,10 +838,14 @@ const char *const *xine_list_video_output_plugins (xine_t *self) ; * visual specific gui <-> xine engine communication * *********************************************************************/ -/* talk to video output driver */ +/* talk to video output driver - old method */ int xine_gui_send_vo_data (xine_stream_t *self, int type, void *data); +/* new (preferred) method to talk to video driver. */ +int xine_port_send_gui_data (xine_video_port_t *vo, + int type, void *data); + typedef struct { /* area of that drawable to be used by video */ diff --git a/src/xine-engine/xine_interface.c b/src/xine-engine/xine_interface.c index 0dbabd2c9..0a455bea9 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.40 2003/02/11 16:42:43 miguelfreitas Exp $ + * $Id: xine_interface.c,v 1.41 2003/02/12 22:22:33 miguelfreitas Exp $ * * convenience/abstraction layer, functions to implement * libxine's public interface @@ -312,6 +312,13 @@ int xine_gui_send_vo_data (xine_stream_t *stream, type, data); } +int xine_port_send_gui_data (xine_video_port_t *vo, + int type, void *data) { + + return vo->driver->gui_data_exchange (vo->driver, + type, data); +} + void xine_set_param (xine_stream_t *stream, int param, int value) { switch (param) { |