Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libbluray
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
libbluray
Commits
c9b6ce32
Commit
c9b6ce32
authored
Jan 07, 2010
by
NXZecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new module parameter to set BD_DEBUG_MASK :-)
parent
ff4d0aa2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
src/examples/player_wrappers/vlc/bluray.c
src/examples/player_wrappers/vlc/bluray.c
+12
-1
No files found.
src/examples/player_wrappers/vlc/bluray.c
View file @
c9b6ce32
...
...
@@ -27,7 +27,8 @@
"value should be set in milliseconds." )
#define KEYCFG_TEXT N_("KeyDB file for libbluray")
#define KEYCFG_LONGTEXT N_("Filename for the keycfg.db file.")
#define DEBUGMASK_TEXT N_("BD Debug mask")
#define DEBUGMASK_LONGTEXT N_("Set up the debug mask value for libbluray")
static
int
blurayOpen
(
vlc_object_t
*
);
static
void
blurayClose
(
vlc_object_t
*
);
...
...
@@ -40,6 +41,8 @@ vlc_module_begin ()
CACHING_TEXT
,
CACHING_LONGTEXT
,
true
)
add_file
(
"keycfg-db"
,
"/usr/local/share/bluray/keycfg.db"
,
NULL
,
KEYCFG_TEXT
,
KEYCFG_LONGTEXT
,
false
);
add_string
(
"debug-mask"
,
"0x0000"
,
NULL
,
DEBUGMASK_TEXT
,
DEBUGMASK_LONGTEXT
,
false
);
set_capability
(
"access"
,
10
)
add_shortcut
(
"bluray"
)
add_shortcut
(
"file"
)
...
...
@@ -74,6 +77,7 @@ static int bluraySetTitle(access_t *p_access, int i_tile);
static
int
blurayOpen
(
vlc_object_t
*
object
)
{
char
*
keycfg
=
NULL
;
char
*
debug_mask
=
NULL
;
char
*
pos_title
;
int
i_title
=
0
;
access_t
*
p_access
=
(
access_t
*
)
object
;
...
...
@@ -88,6 +92,8 @@ static int blurayOpen( vlc_object_t *object )
var_Create
(
p_access
,
"bd-caching"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_access
,
"keycfg-db"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_access
,
"debug-mask"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
keycfg
=
var_GetString
(
p_access
,
"keycfg-db"
);
if
(
keycfg
==
NULL
)
{
...
...
@@ -95,6 +101,11 @@ static int blurayOpen( vlc_object_t *object )
return
VLC_EGENERIC
;
}
debug_mask
=
var_GetString
(
p_access
,
"debug-mask"
);
if
(
debug_mask
)
{
setenv
(
"BD_DEBUG_MASK"
,
debug_mask
,
1
);
}
/* init access fields */
access_InitFields
(
p_access
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment