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
8f61520c
Commit
8f61520c
authored
May 30, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "AA: use key thread (partially fix #3661) - untested"
This reverts commit
4b435093
.
parent
4b435093
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
12 deletions
+8
-12
modules/video_output/Modules.am
modules/video_output/Modules.am
+1
-1
modules/video_output/aa.c
modules/video_output/aa.c
+7
-11
No files found.
modules/video_output/Modules.am
View file @
8f61520c
...
@@ -4,7 +4,7 @@ SUBDIRS = msw
...
@@ -4,7 +4,7 @@ SUBDIRS = msw
# obviously does not. Here is a fix for that.
# obviously does not. Here is a fix for that.
LIBTOOL=@LIBTOOL@ --tag=CC
LIBTOOL=@LIBTOOL@ --tag=CC
SOURCES_aa = aa.c
keythread.h keythread.c
SOURCES_aa = aa.c
SOURCES_caca = caca.c keythread.h keythread.c
SOURCES_caca = caca.c keythread.h keythread.c
SOURCES_fb = fb.c
SOURCES_fb = fb.c
SOURCES_vout_sdl = sdl.c keythread.h keythread.c
SOURCES_vout_sdl = sdl.c keythread.h keythread.c
...
...
modules/video_output/aa.c
View file @
8f61520c
...
@@ -32,7 +32,6 @@
...
@@ -32,7 +32,6 @@
#include <vlc_plugin.h>
#include <vlc_plugin.h>
#include <vlc_vout_display.h>
#include <vlc_vout_display.h>
#include <vlc_picture_pool.h>
#include <vlc_picture_pool.h>
#include "keythread.h"
#include <assert.h>
#include <assert.h>
#include <aalib.h>
#include <aalib.h>
...
@@ -74,7 +73,6 @@ struct vout_display_sys_t {
...
@@ -74,7 +73,6 @@ struct vout_display_sys_t {
vout_display_cfg_t
state
;
vout_display_cfg_t
state
;
picture_pool_t
*
pool
;
picture_pool_t
*
pool
;
key_thread_t
*
keys
;
};
};
/**
/**
...
@@ -131,7 +129,6 @@ static int Open(vlc_object_t *object)
...
@@ -131,7 +129,6 @@ static int Open(vlc_object_t *object)
vout_display_SendEventFullscreen
(
vd
,
false
);
vout_display_SendEventFullscreen
(
vd
,
false
);
vout_display_SendEventDisplaySize
(
vd
,
fmt
.
i_width
,
fmt
.
i_height
,
false
);
vout_display_SendEventDisplaySize
(
vd
,
fmt
.
i_width
,
fmt
.
i_height
,
false
);
sys
->
keys
=
vlc_CreateKeyThread
(
vd
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
error:
error:
...
@@ -149,7 +146,6 @@ static void Close(vlc_object_t *object)
...
@@ -149,7 +146,6 @@ static void Close(vlc_object_t *object)
vout_display_t
*
vd
=
(
vout_display_t
*
)
object
;
vout_display_t
*
vd
=
(
vout_display_t
*
)
object
;
vout_display_sys_t
*
sys
=
vd
->
sys
;
vout_display_sys_t
*
sys
=
vd
->
sys
;
vlc_DestroyKeyTread
(
sys
->
keys
);
if
(
sys
->
pool
)
if
(
sys
->
pool
)
picture_pool_Delete
(
sys
->
pool
);
picture_pool_Delete
(
sys
->
pool
);
aa_close
(
sys
->
aa_context
);
aa_close
(
sys
->
aa_context
);
...
@@ -292,26 +288,26 @@ static void Manage(vout_display_t *vd)
...
@@ -292,26 +288,26 @@ static void Manage(vout_display_t *vd)
/* TODO keys support to complete */
/* TODO keys support to complete */
case
AA_UP
:
case
AA_UP
:
v
lc_EmitKey
(
sys
->
keys
,
KEY_UP
);
v
out_display_SendEventKey
(
vd
,
KEY_UP
);
break
;
break
;
case
AA_DOWN
:
case
AA_DOWN
:
v
lc_EmitKey
(
sys
->
keys
,
KEY_DOWN
);
v
out_display_SendEventKey
(
vd
,
KEY_DOWN
);
break
;
break
;
case
AA_RIGHT
:
case
AA_RIGHT
:
v
lc_EmitKey
(
sys
->
keys
,
KEY_RIGHT
);
v
out_display_SendEventKey
(
vd
,
KEY_RIGHT
);
break
;
break
;
case
AA_LEFT
:
case
AA_LEFT
:
v
lc_EmitKey
(
sys
->
keys
,
KEY_LEFT
);
v
out_display_SendEventKey
(
vd
,
KEY_LEFT
);
break
;
break
;
case
AA_BACKSPACE
:
case
AA_BACKSPACE
:
v
lc_EmitKey
(
sys
->
keys
,
KEY_BACKSPACE
);
v
out_display_SendEventKey
(
vd
,
KEY_BACKSPACE
);
break
;
break
;
case
AA_ESC
:
case
AA_ESC
:
v
lc_EmitKey
(
sys
->
keys
,
KEY_ESC
);
v
out_display_SendEventKey
(
vd
,
KEY_ESC
);
break
;
break
;
default:
default:
if
(
event
>=
0x20
&&
event
<=
0x7f
)
if
(
event
>=
0x20
&&
event
<=
0x7f
)
v
lc_EmitKey
(
sys
->
keys
,
event
);
v
out_display_SendEventKey
(
vd
,
event
);
break
;
break
;
}
}
}
}
...
...
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