[vlc-devel] [PATCH 5/9] dvdread: Implement DEMUX_GET_TYPE

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


---
 modules/access/dvdread.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/access/dvdread.c b/modules/access/dvdread.c
index ae0ed798cd..bd5cb84b3a 100644
--- a/modules/access/dvdread.c
+++ b/modules/access/dvdread.c
@@ -460,6 +460,10 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
                 VLC_TICK_FROM_MS(var_InheritInteger( p_demux, "disc-caching" ));
             return VLC_SUCCESS;
 
+        case DEMUX_GET_TYPE:
+            *va_arg( args, int* ) = ITEM_TYPE_DISC;
+            return VLC_SUCCESS;
+
         /* TODO implement others */
         default:
             return VLC_EGENERIC;
-- 
2.20.1



More information about the vlc-devel mailing list