Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
737562d4
Commit
737562d4
authored
May 01, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/demux/dvdnav.c: a few coding style changes.
parent
d2473911
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
45 deletions
+47
-45
modules/demux/dvdnav.c
modules/demux/dvdnav.c
+47
-45
No files found.
modules/demux/dvdnav.c
View file @
737562d4
...
...
@@ -378,11 +378,15 @@ static int DemuxOpen( vlc_object_t *p_this )
msg_Warn
(
p_demux
,
"cannot set title/chapter"
);
}
if
(
!
p_sys
->
b_simple
)
{
/* fill p_demux field */
p_demux
->
pf_control
=
DemuxControl
;
p_demux
->
pf_demux
=
DemuxDemux
;
/* For simple mode (no menus), we're done */
if
(
p_sys
->
b_simple
)
return
VLC_SUCCESS
;
/* Get p_input and create variable */
p_sys
->
p_input
=
vlc_object_find
(
p_demux
,
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
p_sys
->
p_input
=
vlc_object_find
(
p_demux
,
VLC_OBJECT_INPUT
,
FIND_PARENT
);
var_Create
(
p_sys
->
p_input
,
"x-start"
,
VLC_VAR_INTEGER
);
var_Create
(
p_sys
->
p_input
,
"y-start"
,
VLC_VAR_INTEGER
);
var_Create
(
p_sys
->
p_input
,
"x-end"
,
VLC_VAR_INTEGER
);
...
...
@@ -418,11 +422,6 @@ static int DemuxOpen( vlc_object_t *p_this )
p_sys
->
p_ev
->
p_demux
=
p_demux
;
vlc_thread_create
(
p_sys
->
p_ev
,
"dvdnav event thread handler"
,
EventThread
,
VLC_THREAD_PRIORITY_LOW
,
VLC_FALSE
);
}
/* fill p_demux field */
p_demux
->
pf_control
=
DemuxControl
;
p_demux
->
pf_demux
=
DemuxDemux
;
return
VLC_SUCCESS
;
}
...
...
@@ -734,7 +733,8 @@ static void ButtonUpdate( demux_t *p_demux )
dvdnav_highlight_area_t
hl
;
int32_t
i_button
;
if
(
dvdnav_get_current_highlight
(
p_sys
->
dvdnav
,
&
i_button
)
!=
DVDNAV_STATUS_OK
)
if
(
dvdnav_get_current_highlight
(
p_sys
->
dvdnav
,
&
i_button
)
!=
DVDNAV_STATUS_OK
)
{
msg_Err
(
p_demux
,
"dvdnav_get_current_highlight failed"
);
return
;
...
...
@@ -769,11 +769,13 @@ static void ButtonUpdate( demux_t *p_demux )
}
else
{
msg_Dbg
(
p_demux
,
"buttonUpdate not done b=%d t=%d"
,
i_button
,
i_title
);
msg_Dbg
(
p_demux
,
"buttonUpdate not done b=%d t=%d"
,
i_button
,
i_title
);
/* Show all */
vlc_mutex_lock
(
p_mutex
);
val
.
b_bool
=
VLC_FALSE
;
var_Set
(
p_sys
->
p_input
,
"highlight"
,
val
);
val
.
b_bool
=
VLC_FALSE
;
var_Set
(
p_sys
->
p_input
,
"highlight"
,
val
);
vlc_mutex_unlock
(
p_mutex
);
}
}
...
...
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