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

Hugo Beauzée-Luyssen hugo at beauzee.fr
Thu Sep 10 15:17:59 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..ff10541704 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, enum input_item_type_e* ) = ITEM_TYPE_DISC;
+            break;
+        }
+
         /* TODO implement others */
         default:
             return VLC_EGENERIC;
-- 
2.20.1



More information about the vlc-devel mailing list