[vlc-devel] [PATCH] Use requested win32 dvd-adapter
Craig Huggins
craighuggins at hotmail.com
Tue Feb 13 00:06:58 UTC 2024
Use requested win32 dvd-adapter by looking for passed argument more thoroughly, matching linux dvb-adapter lookup.
I've tested this against vlc-3.0 git branch, and the issue remains in 4.0 development branch.
Enables using multiple instances of vlc each capturing their own dvb-adapter,
or a single libvlc instance capturing from multiple adapters via multiple player instances
---
modules/access/dtv/bdagraph.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/access/dtv/bdagraph.cpp b/modules/access/dtv/bdagraph.cpp
index b9b28cfac1..c6b26f926a 100644
--- a/modules/access/dtv/bdagraph.cpp
+++ b/modules/access/dtv/bdagraph.cpp
@@ -2042,7 +2042,7 @@ HRESULT BDAGraph::Check( REFCLSID clsid_this_network_type )
* available, so return with an error. */
long l_adapter = -1;
- l_adapter = var_GetInteger( p_access, "dvb-adapter" );
+ l_adapter = var_InheritInteger( p_access, "dvb-adapter" );
if( l_tuner_used < 0 && l_adapter >= 0 )
l_tuner_used = l_adapter - 1;
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20240213/88594713/attachment.htm>
More information about the vlc-devel
mailing list