changeset 67:61c0ee1bbb7a src

Moved get_current_nav_pci into dvdnac.c, changed example to use it instead of 'home-rolled' check_packet.
author richwareham
date Thu, 25 Jul 2002 14:51:40 +0000
parents 2bd4a78eefce
children 3b45c78f061e
files dvdnav.c dvdnav.h highlight.c
diffstat 3 files changed, 11 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/dvdnav.c	Thu Jul 25 14:42:33 2002 +0000
+++ b/dvdnav.c	Thu Jul 25 14:51:40 2002 +0000
@@ -976,6 +976,11 @@
   return S_OK;
 } 
 
+pci_t* dvdnav_get_current_nav_pci(dvdnav_t *this) {
+  if(!this || !this->vm) return 0;
+  return &this->pci;
+}
+
 dsi_t* dvdnav_get_current_nav_dsi(dvdnav_t *this) {
   if(!this || !this->vm) return 0;
   return &this->dsi;
@@ -990,6 +995,10 @@
 
 /*
  * $Log$
+ * Revision 1.29  2002/07/25 14:51:40  richwareham
+ * Moved get_current_nav_pci into dvdnac.c, changed example to use it instead of 'home-rolled'
+ * check_packet.
+ *
  * Revision 1.28  2002/07/25 14:42:33  richwareham
  * Patch from aschultz@cs.uni-magdeburg.de to allow for still-frame 'peek-ahead'
  *
--- a/dvdnav.h	Thu Jul 25 14:42:33 2002 +0000
+++ b/dvdnav.h	Thu Jul 25 14:51:40 2002 +0000
@@ -503,12 +503,12 @@
 pci_t* dvdnav_get_current_nav_pci(dvdnav_t *self);
 
 /**
- * Returns the DSI structure associated
+ * Returns the DSI (data seach information) structure associated
  * with the current position.
  *
  * \param self Pointer to dvdnav_t associated with this operation.
  *
- * \sa dsi_t (in <tt>libdvdread</tt>)
+ * \sa pci_t (in <tt>libdvdread</tt>)
  */
 dsi_t* dvdnav_get_current_nav_dsi(dvdnav_t *self);
 
--- a/highlight.c	Thu Jul 25 14:42:33 2002 +0000
+++ b/highlight.c	Thu Jul 25 14:51:40 2002 +0000
@@ -53,11 +53,6 @@
   return S_OK;
 }
 
-pci_t* dvdnav_get_current_nav_pci(dvdnav_t *this) {
-  if (!this ) assert(0);
-  return &this->pci;
-}
-
 btni_t *__get_current_button(dvdnav_t *this) {
   int button = 0;