[vlc-commits] dvdread: Implement DEMUX_GET_TYPE

Hugo Beauzée-Luyssen git at videolan.org
Thu Sep 17 17:53:35 CEST 2020


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Sep 10 18:08:27 2020 +0200| [b8ad5469c39bb08ac6fd0f9bae40eeb7521e8038] | committer: Hugo Beauzée-Luyssen

dvdread: Implement DEMUX_GET_TYPE

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b8ad5469c39bb08ac6fd0f9bae40eeb7521e8038
---

 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;



More information about the vlc-commits mailing list