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
213725df
Commit
213725df
authored
Mar 10, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/gtk/gnome.c, modules/gui/gtk/gtk.c: small change to the slider behaviour.
parent
c66372f3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
modules/gui/gtk/gnome.c
modules/gui/gtk/gnome.c
+3
-3
modules/gui/gtk/gtk.c
modules/gui/gtk/gtk.c
+11
-8
No files found.
modules/gui/gtk/gnome.c
View file @
213725df
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gnome.c : Gnome plugin for vlc
* gnome.c : Gnome plugin for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000 VideoLAN
* Copyright (C) 2000 VideoLAN
* $Id: gnome.c,v 1.1
2 2003/03/07 00:53:0
9 gbazin Exp $
* $Id: gnome.c,v 1.1
3 2003/03/10 18:17:1
9 gbazin Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -451,9 +451,9 @@ static void Manage( intf_thread_t *p_intf )
...
@@ -451,9 +451,9 @@ static void Manage( intf_thread_t *p_intf )
* finished dragging the slider.
* finished dragging the slider.
* Beware, the hack below is needed by the dvdplay plugin! */
* Beware, the hack below is needed by the dvdplay plugin! */
else
if
(
p_intf
->
p_sys
->
b_slider_free
else
if
(
p_intf
->
p_sys
->
b_slider_free
/* hack -> */
&&
(
p_intf
->
p_sys
->
f_adj_oldvalue
<
=
100
.)
)
/* hack -> */
&&
(
p_intf
->
p_sys
->
f_adj_oldvalue
<
100
.)
)
{
{
if
(
newvalue
>
0
.
&&
newvalue
<
100
.
)
if
(
newvalue
>
=
0
.
&&
newvalue
<
100
.
)
{
{
off_t
i_seek
=
(
newvalue
*
p_area
->
i_size
)
/
100
;
off_t
i_seek
=
(
newvalue
*
p_area
->
i_size
)
/
100
;
...
...
modules/gui/gtk/gtk.c
View file @
213725df
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* gtk.c : Gtk+ plugin for vlc
* gtk.c : Gtk+ plugin for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* Copyright (C) 2000-2001 VideoLAN
* $Id: gtk.c,v 1.1
7 2003/03/07 00:53:0
9 gbazin Exp $
* $Id: gtk.c,v 1.1
8 2003/03/10 18:17:1
9 gbazin Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -464,7 +464,9 @@ static int Manage( intf_thread_t *p_intf )
...
@@ -464,7 +464,9 @@ static int Manage( intf_thread_t *p_intf )
* finished dragging the slider.
* finished dragging the slider.
* Beware, the hack below is needed by the dvdplay plugin! */
* Beware, the hack below is needed by the dvdplay plugin! */
else
if
(
p_intf
->
p_sys
->
b_slider_free
else
if
(
p_intf
->
p_sys
->
b_slider_free
/* hack -> */
&&
(
p_intf
->
p_sys
->
f_adj_oldvalue
<=
100
.)
)
/* hack -> */
&&
(
p_intf
->
p_sys
->
f_adj_oldvalue
<
100
.)
)
{
if
(
newvalue
>=
0
.
&&
newvalue
<
100
.
)
{
{
off_t
i_seek
=
(
newvalue
*
p_area
->
i_size
)
/
100
;
off_t
i_seek
=
(
newvalue
*
p_area
->
i_size
)
/
100
;
...
@@ -472,6 +474,7 @@ static int Manage( intf_thread_t *p_intf )
...
@@ -472,6 +474,7 @@ static int Manage( intf_thread_t *p_intf )
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
input_Seek
(
p_input
,
i_seek
,
INPUT_SEEK_SET
);
input_Seek
(
p_input
,
i_seek
,
INPUT_SEEK_SET
);
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
}
/* Update the old value */
/* Update the old value */
p_intf
->
p_sys
->
f_adj_oldvalue
=
newvalue
;
p_intf
->
p_sys
->
f_adj_oldvalue
=
newvalue
;
...
...
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