Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
f2838593
Commit
f2838593
authored
Aug 08, 2013
by
Petri Hintukainen
Committed by
Rafaël Carré
Aug 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bluray: add an option to select player region code
Signed-off-by:
Rafaël Carré
<
funman@videolan.org
>
parent
256184cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
modules/access/bluray.c
modules/access/bluray.c
+18
-0
No files found.
modules/access/bluray.c
View file @
f2838593
...
...
@@ -60,6 +60,16 @@
#define BD_MENU_TEXT N_( "Blu-ray menus" )
#define BD_MENU_LONGTEXT N_( "Use Blu-ray menus. If disabled, "\
"the movie will start directly" )
#define BD_REGION_TEXT N_( "Region code" )
#define BD_REGION_LONGTEXT N_( "Blu-Ray player region code. "\
"Some discs can be played only with a correct region code.")
static
const
char
*
const
ppsz_region_code
[]
=
{
"A"
,
"B"
,
"C"
};
static
const
char
*
const
ppsz_region_code_text
[]
=
{
"Region A"
,
"Region B"
,
"Region C"
};
#define REGION_DEFAULT 1
/* Index to region list. Actual region code is (1<<REGION_DEFAULT) */
/* Callbacks */
static
int
blurayOpen
(
vlc_object_t
*
);
...
...
@@ -73,6 +83,8 @@ vlc_module_begin ()
set_subcategory
(
SUBCAT_INPUT_ACCESS
)
set_capability
(
"access_demux"
,
200
)
add_bool
(
"bluray-menu"
,
false
,
BD_MENU_TEXT
,
BD_MENU_LONGTEXT
,
false
)
add_string
(
"bluray-region"
,
ppsz_region_code
[
REGION_DEFAULT
],
BD_REGION_TEXT
,
BD_REGION_LONGTEXT
,
false
)
change_string_list
(
ppsz_region_code
,
ppsz_region_code_text
)
add_shortcut
(
"bluray"
,
"file"
)
...
...
@@ -311,6 +323,12 @@ static int blurayOpen( vlc_object_t *object )
}
}
/* set player region code */
char
*
psz_region
=
var_InheritString
(
p_demux
,
"bluray-region"
);
unsigned
int
region
=
psz_region
?
(
psz_region
[
0
]
-
'A'
)
:
REGION_DEFAULT
;
free
(
psz_region
);
bd_set_player_setting
(
p_sys
->
bluray
,
BLURAY_PLAYER_SETTING_REGION_CODE
,
1
<<
region
);
/* Get titles and chapters */
p_sys
->
p_meta
=
bd_get_meta
(
p_sys
->
bluray
);
if
(
!
p_sys
->
p_meta
)
...
...
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