Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
d266c1b6
Commit
d266c1b6
authored
Oct 14, 2002
by
Eric Petit
Browse files
Fixed seeking.
parent
2f278849
Changes
3
Hide whitespace changes
Inline
Side-by-side
modules/gui/beos/MediaControlView.cpp
View file @
d266c1b6
...
...
@@ -2,7 +2,7 @@
* MediaControlView.cpp: beos interface
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: MediaControlView.cpp,v 1.
3
2002/
09/30 18:30:2
7 titer Exp $
* $Id: MediaControlView.cpp,v 1.
4
2002/
10/14 20:09:1
7 titer Exp $
*
* Authors: Tony Castley <tony@castley.net>
* Stephan Aßmus <stippi@yellowbites.com>
...
...
@@ -82,7 +82,8 @@ MediaControlView::MediaControlView(BRect frame)
BRect
frame
(
0.0
,
0.0
,
10.0
,
10.0
);
// Seek Slider
fSeekSlider
=
new
SeekSlider
(
frame
,
"seek slider"
,
this
,
0
,
2047
);
fSeekSlider
=
new
SeekSlider
(
frame
,
"seek slider"
,
this
,
0
,
SEEKSLIDER_RANGE
-
1
);
fSeekSlider
->
SetValue
(
0
);
fSeekSlider
->
ResizeToPreferred
();
AddChild
(
fSeekSlider
);
...
...
modules/gui/beos/VlcWrapper.cpp
View file @
d266c1b6
...
...
@@ -2,7 +2,7 @@
* intf_vlc_wrapper.h: BeOS plugin for vlc (derived from MacOS X port )
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: VlcWrapper.cpp,v 1.
5
2002/10/1
0
2
3:11:52
titer Exp $
* $Id: VlcWrapper.cpp,v 1.
6
2002/10/1
4
2
0:09:17
titer Exp $
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
...
...
@@ -658,7 +658,8 @@ void Intf_VLCWrapper::setTimeAsFloat(float f_position)
if
(
p_intf
->
p_sys
->
p_input
!=
NULL
)
{
input_Seek
(
p_intf
->
p_sys
->
p_input
,
(
long
long
int
)(
p_intf
->
p_sys
->
p_input
->
stream
.
p_selected_area
->
i_size
*
f_position
/
100
),
(
long
long
int
)(
p_intf
->
p_sys
->
p_input
->
stream
.
p_selected_area
->
i_size
*
f_position
/
SEEKSLIDER_RANGE
),
INPUT_SEEK_SET
);
}
}
...
...
modules/gui/beos/VlcWrapper.h
View file @
d266c1b6
...
...
@@ -2,7 +2,7 @@
* intf_vlc_wrapper.h: BeOS plugin for vlc (derived from MacOS X port )
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: VlcWrapper.h,v 1.
3
2002/10/1
0
2
3:11:52
titer Exp $
* $Id: VlcWrapper.h,v 1.
4
2002/10/1
4
2
0:09:17
titer Exp $
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
...
...
@@ -23,6 +23,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#define SEEKSLIDER_RANGE 2048
class
InterfaceWindow
;
class
Intf_VLCWrapper
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment