[MPlayer-users] DVDNAV question

Kevin DeKorte kdekorte at gmail.com
Thu Apr 9 01:01:29 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/08/2009 03:57 PM, Nico Sabbi wrote:
> Il giorno mar, 07/04/2009 alle 10.33 -0600, Kevin DeKorte ha scritto:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Is there a way via the slave interface to determine if the current
>> DVDNAV track is a DVD menu or not?
>>
>> What I would like to do is be able to use the arrow keys in the menu,
>> but once a non-menu track is selected to be able to use the arrow keys
>> to advance the media
>>
>> Kevin
> 
> there is some dvdnav_is() function to use for the purpose, but it's not
> used in mplayer

Nico,

Would you accept this patch or something similar?

Index: libdvdnav/dvdnav.c
===================================================================
- --- libdvdnav/dvdnav.c	(revision 1168)
+++ libdvdnav/dvdnav.c	(working copy)
@@ -44,6 +44,7 @@
 #include "read_cache.h"
 #include <dvdread/nav_read.h>
 #include "remap.h"
+#include "mp_msg.h"

 static dvdnav_status_t dvdnav_clear(dvdnav_t * this) {
   /* clear everything except file, vm, mutex, readahead */
@@ -1074,6 +1075,11 @@
   retval = (this->vm->state.domain == domain);
   pthread_mutex_unlock(&this->vm_lock);

+  if(domain == VTS_DOMAIN && retval)
+    mp_msg(MSGT_IDENTIFY, MSGL_INFO, "DVDNAV_TITLE_IS_MOVIE\n");
+  else
+    mp_msg(MSGT_IDENTIFY, MSGL_INFO, "DVDNAV_TITLE_IS_MENU\n");
+
   return retval;
 }


Kevin
- -- 
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkndLMkACgkQ6w2kMH0L1dFNLwCfUuM2HNUUWKlz+FTxT8eJIUJ9
eW0An0bammXvoJWB+MUqqJVGbl0+Ig0k
=9USC
-----END PGP SIGNATURE-----


More information about the MPlayer-users mailing list