Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
e78a00bb
Commit
e78a00bb
authored
Jan 28, 2003
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALL: the next and previous buttons first work through the chapters. Only
then they turn to the playlist.
parent
22d5c48a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
17 deletions
+62
-17
modules/gui/macosx/controls.m
modules/gui/macosx/controls.m
+51
-11
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+11
-6
No files found.
modules/gui/macosx/controls.m
View file @
e78a00bb
...
...
@@ -2,7 +2,7 @@
* controls.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: controls.m,v 1.1
4 2003/01/24 16:19:15
hartman Exp $
* $Id: controls.m,v 1.1
5 2003/01/28 01:50:52
hartman Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -241,29 +241,69 @@
-
(
IBAction
)
prev
:(
id
)
sender
{
intf_thread_t
*
p_intf
=
[
NSApp
getIntf
];
input_area_t
*
p_area
;
playlist_t
*
p_playlist
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
p_playlist
==
NULL
)
vlc_mutex_lock
(
&
p_intf
->
p_sys
->
p_input
->
stream
.
stream_lock
);
p_area
=
p_intf
->
p_sys
->
p_input
->
stream
.
p_selected_area
;
/* check if this is the first chapter and whether there are any chapters at all */
if
(
p_area
->
i_part
>
1
&&
p_area
->
i_part_nb
>
1
)
{
return
;
}
p_area
->
i_part
--
;
vlc_mutex_unlock
(
&
p_intf
->
p_sys
->
p_input
->
stream
.
stream_lock
);
playlist_Prev
(
p_playlist
);
vlc_object_release
(
p_playlist
);
input_ChangeArea
(
p_intf
->
p_sys
->
p_input
,
p_area
);
p_intf
->
p_sys
->
b_chapter_update
=
VLC_TRUE
;
}
else
if
(
p_playlist
!=
NULL
)
{
vlc_mutex_unlock
(
&
p_intf
->
p_sys
->
p_input
->
stream
.
stream_lock
);
playlist_Prev
(
p_playlist
);
}
else
{
vlc_mutex_unlock
(
&
p_intf
->
p_sys
->
p_input
->
stream
.
stream_lock
);
}
if
(
p_playlist
!=
NULL
)
vlc_object_release
(
p_playlist
);
}
-
(
IBAction
)
next
:(
id
)
sender
{
intf_thread_t
*
p_intf
=
[
NSApp
getIntf
];
input_area_t
*
p_area
;
playlist_t
*
p_playlist
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
p_playlist
==
NULL
)
vlc_mutex_lock
(
&
p_intf
->
p_sys
->
p_input
->
stream
.
stream_lock
);
p_area
=
p_intf
->
p_sys
->
p_input
->
stream
.
p_selected_area
;
/* check if this is the last chapter and whether there are any chapters at all */
if
(
p_area
->
i_part_nb
>
1
&&
p_area
->
i_part
<
p_area
->
i_part_nb
)
{
return
;
}
p_area
->
i_part
++
;
vlc_mutex_unlock
(
&
p_intf
->
p_sys
->
p_input
->
stream
.
stream_lock
);
playlist_Next
(
p_playlist
);
vlc_object_release
(
p_playlist
);
input_ChangeArea
(
p_intf
->
p_sys
->
p_input
,
p_area
);
p_intf
->
p_sys
->
b_chapter_update
=
VLC_TRUE
;
}
else
if
(
p_playlist
!=
NULL
)
{
vlc_mutex_unlock
(
&
p_intf
->
p_sys
->
p_input
->
stream
.
stream_lock
);
playlist_Next
(
p_playlist
);
}
else
{
vlc_mutex_unlock
(
&
p_intf
->
p_sys
->
p_input
->
stream
.
stream_lock
);
}
if
(
p_playlist
!=
NULL
)
vlc_object_release
(
p_playlist
);
}
-
(
IBAction
)
loop
:(
id
)
sender
...
...
modules/gui/macosx/intf.m
View file @
e78a00bb
...
...
@@ -2,7 +2,7 @@
* intf.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
* $Id: intf.m,v 1.3
6 2003/01/27 00:08:31 jlj
Exp $
* $Id: intf.m,v 1.3
7 2003/01/28 01:50:52 hartman
Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -627,8 +627,10 @@ static void Run( intf_thread_t *p_intf )
-
(
void
)
setControlItems
{
intf_thread_t
*
p_intf
=
[
NSApp
getIntf
];
vlc_bool_t
b_input
;
vlc_bool_t
b_plmul
=
0
;
vlc_bool_t
b_control
=
0
;
vlc_bool_t
b_plmul
=
NO
;
vlc_bool_t
b_control
=
NO
;
vlc_bool_t
b_chapters
=
NO
;
input_area_t
*
p_area
;
playlist_t
*
p_playlist
=
NULL
;
NSImage
*
playImage
=
[
NSImage
imageNamed
:
@"play"
];
NSImage
*
pauseImage
=
[
NSImage
imageNamed
:
@"pause"
];
...
...
@@ -643,18 +645,21 @@ static void Run( intf_thread_t *p_intf )
vlc_object_release
(
p_playlist
);
}
if
(
(
b_input
=
(
p_intf
->
p_sys
->
p_input
!=
NULL
)
)
)
if
(
b_input
=
(
p_intf
->
p_sys
->
p_input
!=
NULL
)
)
{
/* control buttons for free pace streams */
b_control
=
p_intf
->
p_sys
->
p_input
->
stream
.
b_pace_control
;
p_area
=
p_intf
->
p_sys
->
p_input
->
stream
.
p_selected_area
;
if
(
p_area
->
i_part_nb
>
1
)
b_chapters
=
YES
;
}
/* set control items */
[
o_btn_stop
setEnabled
:
b_input
];
[
o_btn_fastforward
setEnabled
:
b_control
];
[
o_btn_slowmotion
setEnabled
:
b_control
];
[
o_btn_prev
setEnabled
:
b_plmul
];
[
o_btn_next
setEnabled
:
b_plmul
];
[
o_btn_prev
setEnabled
:
(
b_plmul
||
b_chapters
)
];
[
o_btn_next
setEnabled
:
(
b_plmul
||
b_chapters
)
];
[
o_controls
setVolumeSlider
];
[
o_timeslider
setEnabled
:
b_input
];
...
...
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