diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-08-04 02:07:26 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-08-04 02:07:26 +0000 |
commit | ba54315e30f7b2c6cac58f28343911c486aedace (patch) | |
tree | da288f2f456e27013d9a608b5c9d820d8ab98610 | |
parent | 272e872090c9c5e2f0c965f671279220bba00b71 (diff) | |
download | xine-lib-ba54315e30f7b2c6cac58f28343911c486aedace.tar.gz xine-lib-ba54315e30f7b2c6cac58f28343911c486aedace.tar.bz2 |
add xine_get_current_vpts() to make xine_osd_show and xine_osd_hide api consistent
CVS patchset: 5236
CVS date: 2003/08/04 02:07:26
-rw-r--r-- | include/xine.h.in | 8 | ||||
-rw-r--r-- | src/xine-engine/xine_interface.c | 6 |
2 files changed, 12 insertions, 2 deletions
diff --git a/include/xine.h.in b/include/xine.h.in index d0743f756..696d13b83 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.90 2003/07/12 20:31:49 miguelfreitas Exp $ + * $Id: xine.h.in,v 1.91 2003/08/04 02:07:26 miguelfreitas Exp $ * * public xine-lib (libxine) interface and documentation * @@ -372,6 +372,12 @@ int xine_get_current_frame (xine_stream_t *stream, #define XINE_IMGFMT_YV12 (('2'<<24)|('1'<<16)|('V'<<8)|'Y') #define XINE_IMGFMT_YUY2 (('2'<<24)|('Y'<<16)|('U'<<8)|'Y') +/* get current xine's virtual presentation timestamp (1/90000 sec) + * note: this is mostly internal data. + * one can use vpts with xine_osd_show() and xine_osd_hide(). + */ +int64_t xine_get_current_vpts(xine_stream_t *stream); + /********************************************************************* * media processing * diff --git a/src/xine-engine/xine_interface.c b/src/xine-engine/xine_interface.c index 6115b0c0e..6e5f2f8e7 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.54 2003/05/15 20:23:18 miguelfreitas Exp $ + * $Id: xine_interface.c,v 1.55 2003/08/04 02:07:26 miguelfreitas Exp $ * * convenience/abstraction layer, functions to implement * libxine's public interface @@ -828,3 +828,7 @@ int xine_message(xine_stream_t *stream, int type, ...) { return 1; } + +int64_t xine_get_current_vpts(xine_stream_t *stream) { + stream->xine->clock->get_current_time(stream->xine->clock); +} |