From ba54315e30f7b2c6cac58f28343911c486aedace Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Mon, 4 Aug 2003 02:07:26 +0000 Subject: 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 --- include/xine.h.in | 8 +++++++- 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); +} -- cgit v1.2.3