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

Hugo Beauzée-Luyssen hugo at beauzee.fr
Wed Sep 16 15:54:13 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..92bf380fd7 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, enum input_item_type_e* ) = ITEM_TYPE_DISC;
+            return VLC_SUCCESS;
+
         /* TODO implement others */
         default:
             return VLC_EGENERIC;
-- 
2.20.1



More information about the vlc-devel mailing list