[vlc-devel] [PATCH 2/9] dvdnav: Implement DEMUX_GET_TYPE

Hugo Beauzée-Luyssen hugo at beauzee.fr
Thu Sep 17 11:28:58 CEST 2020


---
 modules/access/dvdnav.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index 2b199f76c8..29170ae832 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -832,6 +832,12 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
             break;
         }
 
+        case DEMUX_GET_TYPE:
+        {
+            *va_arg( args, int* ) = ITEM_TYPE_DISC;
+            break;
+        }
+
         /* TODO implement others */
         default:
             return VLC_EGENERIC;
-- 
2.20.1



More information about the vlc-devel mailing list