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
1b834a36
Commit
1b834a36
authored
Jun 22, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* all: rework of the input.
parent
eb1fc1f8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
35 deletions
+20
-35
modules/control/gestures.c
modules/control/gestures.c
+1
-4
modules/control/hotkeys.c
modules/control/hotkeys.c
+5
-1
modules/control/http.c
modules/control/http.c
+4
-4
modules/control/joystick.c
modules/control/joystick.c
+0
-2
modules/control/netsync.c
modules/control/netsync.c
+0
-1
modules/control/rc.c
modules/control/rc.c
+10
-23
No files found.
modules/control/gestures.c
View file @
1b834a36
...
...
@@ -2,7 +2,7 @@
* gestures.c: control vlc with mouse gestures
*****************************************************************************
* Copyright (C) 2004 VideoLAN
* $Id
: gestures.c,v 1.7 2004/01/25 16:17:03 anil Exp
$
* $Id$
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
*
...
...
@@ -32,9 +32,6 @@
#include <vlc/intf.h>
#include <vlc/vout.h>
#include "stream_control.h"
#include "input_ext-intf.h"
/*****************************************************************************
* intf_sys_t: description and status of interface
*****************************************************************************/
...
...
modules/control/hotkeys.c
View file @
1b834a36
...
...
@@ -361,7 +361,11 @@ static void Run( intf_thread_t *p_intf )
}
else
if
(
p_input
)
{
vlc_bool_t
b_seekable
=
p_input
->
stream
.
b_seekable
;
/* FIXME --fenrir
* How to get a valid value ?
* That's not that easy with some special stream
*/
vlc_bool_t
b_seekable
=
VLC_TRUE
;
if
(
i_action
==
ACTIONID_PAUSE
)
{
...
...
modules/control/http.c
View file @
1b834a36
...
...
@@ -873,10 +873,10 @@ static mvar_t *mvar_InfoSetNew( char *name, input_thread_t *p_input )
return
s
;
}
vlc_mutex_lock
(
&
p_input
->
p_item
->
lock
);
for
(
i
=
0
;
i
<
p_input
->
p_item
->
i_categories
;
i
++
)
vlc_mutex_lock
(
&
p_input
->
input
.
p_item
->
lock
);
for
(
i
=
0
;
i
<
p_input
->
input
.
p_item
->
i_categories
;
i
++
)
{
info_category_t
*
p_category
=
p_input
->
p_item
->
pp_categories
[
i
];
info_category_t
*
p_category
=
p_input
->
input
.
p_item
->
pp_categories
[
i
];
mvar_t
*
cat
=
mvar_New
(
name
,
"set"
);
mvar_t
*
iset
=
mvar_New
(
"info"
,
"set"
);
...
...
@@ -896,7 +896,7 @@ static mvar_t *mvar_InfoSetNew( char *name, input_thread_t *p_input )
}
mvar_AppendVar
(
s
,
cat
);
}
vlc_mutex_unlock
(
&
p_input
->
p_item
->
lock
);
vlc_mutex_unlock
(
&
p_input
->
input
.
p_item
->
lock
);
return
s
;
}
...
...
modules/control/joystick.c
View file @
1b834a36
...
...
@@ -43,8 +43,6 @@
#include <linux/joystick.h>
#include "audio_output.h"
#include "stream_control.h"
#include "input_ext-intf.h"
/* Default values for parameters */
#define DEFAULT_MAX_SEEK 10
/* seconds */
...
...
modules/control/netsync.c
View file @
1b834a36
...
...
@@ -60,7 +60,6 @@
#endif
#include "network.h"
#include "input_ext-plugins.h"
#define NETSYNC_PORT_MASTER 9875
#define NETSYNC_PORT_SLAVE 9876
...
...
modules/control/rc.c
View file @
1b834a36
...
...
@@ -132,10 +132,8 @@ static void Run( intf_thread_t *p_intf )
vlc_bool_t
b_showpos
=
config_GetInt
(
p_intf
,
"rc-show-pos"
);
int
i_dummy
;
off_t
i_oldpos
=
0
;
off_t
i_newpos
;
double
f_ratio
=
1
.
0
;
int
i_oldpos
=
0
;
int
i_newpos
;
#ifdef WIN32
HANDLE
hConsoleIn
;
...
...
@@ -324,23 +322,12 @@ static void Run( intf_thread_t *p_intf )
if
(
p_input
&&
b_showpos
)
{
/* Get position */
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
if
(
!
p_input
->
b_die
&&
p_input
->
stream
.
i_mux_rate
)
i_newpos
=
100
*
var_GetFloat
(
p_input
,
"position"
);
if
(
i_oldpos
!=
i_newpos
)
{
#define A p_input->stream.p_selected_area
f_ratio
=
1
.
0
/
(
50
*
p_input
->
stream
.
i_mux_rate
);
i_newpos
=
A
->
i_tell
*
f_ratio
;
if
(
i_oldpos
!=
i_newpos
)
{
i_oldpos
=
i_newpos
;
printf
(
"pos: %li s / %li s
\n
"
,
(
long
int
)
i_newpos
,
(
long
int
)(
f_ratio
*
A
->
i_size
)
);
}
#undef S
i_oldpos
=
i_newpos
;
printf
(
"pos: %d%%
\n
"
,
i_newpos
);
}
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
}
/* Is there something to do? */
...
...
@@ -400,11 +387,11 @@ static void Run( intf_thread_t *p_intf )
if
(
p_input
)
{
int
i
,
j
;
vlc_mutex_lock
(
&
p_input
->
p_item
->
lock
);
for
(
i
=
0
;
i
<
p_input
->
p_item
->
i_categories
;
i
++
)
vlc_mutex_lock
(
&
p_input
->
input
.
p_item
->
lock
);
for
(
i
=
0
;
i
<
p_input
->
input
.
p_item
->
i_categories
;
i
++
)
{
info_category_t
*
p_category
=
p_input
->
p_item
->
pp_categories
[
i
];
p_input
->
input
.
p_item
->
pp_categories
[
i
];
printf
(
"+----[ %s ]
\n
"
,
p_category
->
psz_name
);
printf
(
"|
\n
"
);
...
...
@@ -417,7 +404,7 @@ static void Run( intf_thread_t *p_intf )
printf
(
"|
\n
"
);
}
printf
(
_
(
"+----[ end of stream info ]
\n
"
)
);
vlc_mutex_unlock
(
&
p_input
->
p_item
->
lock
);
vlc_mutex_unlock
(
&
p_input
->
input
.
p_item
->
lock
);
}
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