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
4a484a39
Commit
4a484a39
authored
Jan 21, 2003
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALL: the slider updates the video while it slides.
parent
0a8f461f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
modules/gui/macosx/intf.h
modules/gui/macosx/intf.h
+1
-2
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+9
-9
No files found.
modules/gui/macosx/intf.h
View file @
4a484a39
...
...
@@ -2,7 +2,7 @@
* intf.h: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: intf.h,v 1.1
3 2003/01/16 13:49:44
hartman Exp $
* $Id: intf.h,v 1.1
4 2003/01/21 17:08:16
hartman Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -91,7 +91,6 @@ struct intf_sys_t
IBOutlet
id
o_window
;
/* main window */
IBOutlet
id
o_timefield
;
/* time field */
IBOutlet
id
o_timeslider
;
/* time slider */
NSLock
*
o_slider_lock
;
/* slider lock */
float
f_slider
;
/* slider value */
float
f_slider_old
;
/* old slider val */
IBOutlet
id
o_volumeslider
;
/* volume slider */
...
...
modules/gui/macosx/intf.m
View file @
4a484a39
...
...
@@ -2,7 +2,7 @@
* intf.m: MacOS X interface plugin
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
* $Id: intf.m,v 1.2
7 2003/01/20 03:45:0
6 hartman Exp $
* $Id: intf.m,v 1.2
8 2003/01/21 17:08:1
6 hartman Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
...
...
@@ -286,7 +286,6 @@ static void Run( intf_thread_t *p_intf )
intf_thread_t
*
p_intf
=
[
NSApp
getIntf
];
f_slider_old
=
f_slider
=
0
.
0
;
o_slider_lock
=
[[
NSLock
alloc
]
init
];
[
NSThread
detachNewThreadSelector
:
@selector
(
manage
)
toTarget:
self
withObject
:
nil
];
...
...
@@ -565,8 +564,6 @@ static void Run( intf_thread_t *p_intf )
vout_Destroy
(
p_vout
);
}
[
o_slider_lock
release
];
if
(
o_prefs
!=
nil
)
{
[
o_prefs
release
];
...
...
@@ -1043,13 +1040,17 @@ static void Run( intf_thread_t *p_intf )
{
switch
(
[[
NSApp
currentEvent
]
type
]
)
{
case
NSLeftMouseDown
:
[
o_slider_lock
lock
];
case
NSLeftMouseDragged
:
f_slider
=
[
sender
floatValue
];
[
self
displayTime
];
break
;
case
NSLeftMouseUp
:
f_slider
=
[
sender
floatValue
];
[
o_slider_lock
unlock
];
[
self
displayTime
];
intf_thread_t
*
p_intf
=
[
NSApp
getIntf
];
input_thread_t
*
p_input
=
p_intf
->
p_sys
->
p_input
;
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
break
;
default:
...
...
@@ -1094,10 +1095,9 @@ static void Run( intf_thread_t *p_intf )
float
f_updated
=
(
100
.
*
p_area
->
i_tell
)
/
p_area
->
i_size
;
if
(
f_slider
!=
f_updated
&&
[
o_slider_lock
tryLock
]
)
if
(
f_slider
!=
f_updated
)
{
[
o_timeslider
setFloatValue
:
f_updated
];
[
o_slider_lock
unlock
];
}
}
else
...
...
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