Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
458
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
a2e6e104
Commit
a2e6e104
authored
6 years ago
by
François Cartegnie
Browse files
Options
Downloads
Patches
Plain Diff
contribs: bluray: fix stream selection without menus
parent
adce9a9a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/src/bluray/0001-keep-on-with-menuless-user-selected-streams-between-.patch
+51
-0
51 additions, 0 deletions
...eep-on-with-menuless-user-selected-streams-between-.patch
contrib/src/bluray/rules.mak
+1
-0
1 addition, 0 deletions
contrib/src/bluray/rules.mak
with
52 additions
and
0 deletions
contrib/src/bluray/0001-keep-on-with-menuless-user-selected-streams-between-.patch
0 → 100644
+
51
−
0
View file @
a2e6e104
From 35f1bcc4885f84b3c4836ba1ffea8db6ec4f2682 Mon Sep 17 00:00:00 2001
From: Francois Cartegnie <fcvlcdev@free.fr>
Date: Tue, 13 Nov 2018 23:10:30 +0100
Subject: [PATCH] keep on with menuless user selected streams between clips
---
src/libbluray/bluray.c | 20 ++------------------
1 file changed, 2 insertions(+), 18 deletions(-)
diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 1728801..aa3135e 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -323,24 +323,8 @@
static void _update_clip_psrs(BLURAY *bd, NAV_CLIP *clip)
/* Update selected audio and subtitle stream PSRs when not using menus.
* Selection is based on language setting PSRs and clip STN.
*/
- if (bd->title_type == title_undef) {
-
- if (stn->num_audio) {
- _update_stream_psr_by_lang(bd->regs,
- PSR_AUDIO_LANG, PSR_PRIMARY_AUDIO_ID, 0,
- stn->audio, stn->num_audio,
- &audio_lang, 0);
- }
-
- if (stn->num_pg) {
- _update_stream_psr_by_lang(bd->regs,
- PSR_PG_AND_SUB_LANG, PSR_PG_STREAM, 0x80000000,
- stn->pg, stn->num_pg,
- NULL, audio_lang);
- }
-
/* Validate selected audio, subtitle and IG stream PSRs when using menus */
- } else {
+ {
uint32_t psr_val;
if (stn->num_audio) {
@@ -367,7 +351,7 @@
static void _update_clip_psrs(BLURAY *bd, NAV_CLIP *clip)
}
bd_psr_unlock(bd->regs);
}
- if (stn->num_ig) {
+ if (stn->num_ig && bd->title_type != title_undef) {
bd_psr_lock(bd->regs);
psr_val = bd_psr_read(bd->regs, PSR_IG_STREAM_ID);
if ((psr_val == 0) || (psr_val > stn->num_ig)) {
--
2.17.2
This diff is collapsed.
Click to expand it.
contrib/src/bluray/rules.mak
+
1
−
0
View file @
a2e6e104
...
...
@@ -49,6 +49,7 @@ $(TARBALLS)/libbluray-$(BLURAY_VERSION).tar.bz2:
bluray
:
libbluray-$(BLURAY_VERSION).tar.bz2 .sum-bluray
$(
UNPACK
)
$(
APPLY
)
$(
SRC
)
/bluray/0001-Implement-dl_get_path-for-darwin-macOS.patch
$(
APPLY
)
$(
SRC
)
/bluray/0001-keep-on-with-menuless-user-selected-streams-between-.patch
$(
call pkg_static,
"src/libbluray.pc.in"
)
$(
MOVE
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment