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
85faf5c5
Commit
85faf5c5
authored
May 19, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Same as previous commit
parent
7b0773e6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
modules/gui/macosx/voutqt.m
modules/gui/macosx/voutqt.m
+2
-2
modules/gui/pda/pda.c
modules/gui/pda/pda.c
+3
-3
src/audio_output/output.c
src/audio_output/output.c
+1
-1
src/modules/modules.c
src/modules/modules.c
+3
-1
No files found.
modules/gui/macosx/voutqt.m
View file @
85faf5c5
...
...
@@ -146,8 +146,8 @@ int E_(OpenVideoQT) ( vlc_object_t *p_this )
else
p_vout
->
p_sys
->
b_embedded
=
VLC_FALSE
;
p_vout
->
p_sys
->
b_cpu_has_simd
=
(
p_vout
->
p_libvlc_global
->
i_cpu
&
CPU_CAPABILITY_ALTIVEC
)
|
(
p_vout
->
p_libvlc_global
->
i_cpu
&
CPU_CAPABILITY_MMXEXT
);
p_vout
->
p_sys
->
b_cpu_has_simd
=
vlc_CPU
()
&
(
CPU_CAPABILITY_ALTIVEC
|
CPU_CAPABILITY_MMXEXT
);
msg_Dbg
(
p_vout
,
"we do%s have SIMD enabled CPU"
,
p_vout
->
p_sys
->
b_cpu_has_simd
?
""
:
"n't"
);
/* Initialize QuickTime */
...
...
modules/gui/pda/pda.c
View file @
85faf5c5
...
...
@@ -326,7 +326,7 @@ static void Run( intf_thread_t *p_intf )
/* Sleep to avoid using all CPU - since some interfaces need to
* access keyboard events, a 100ms delay is a good compromise */
gdk_threads_leave
();
if
(
p_intf
->
p_libvlc_global
->
i_cpu
&
CPU_CAPABILITY_FPU
)
if
(
vlc_CPU
()
&
CPU_CAPABILITY_FPU
)
msleep
(
INTF_IDLE_SLEEP
);
else
msleep
(
1000
);
...
...
@@ -336,7 +336,7 @@ static void Run( intf_thread_t *p_intf )
msg_Dbg
(
p_intf
,
"Manage GTK keyboard events using timeouts"
);
/* Sleep to avoid using all CPU - since some interfaces needs to access
* keyboard events, a 1000ms delay is a good compromise */
if
(
p_intf
->
p_libvlc_global
->
i_cpu
&
CPU_CAPABILITY_FPU
)
if
(
vlc_CPU
()
&
CPU_CAPABILITY_FPU
)
i_dummy
=
gtk_timeout_add
(
INTF_IDLE_SLEEP
/
1000
,
(
GtkFunction
)
Manage
,
p_intf
);
else
i_dummy
=
gtk_timeout_add
(
1000
,
(
GtkFunction
)
Manage
,
p_intf
);
...
...
@@ -447,7 +447,7 @@ static int Manage( intf_thread_t *p_intf )
i_time
=
var_GetTime
(
p_intf
->
p_sys
->
p_input
,
"time"
);
i_length
=
var_GetTime
(
p_intf
->
p_sys
->
p_input
,
"length"
);
if
(
p_intf
->
p_libvlc_global
->
i_cpu
&
CPU_CAPABILITY_FPU
)
if
(
vlc_CPU
()
&
CPU_CAPABILITY_FPU
)
{
/* Manage the slider for CPU_CAPABILITY_FPU hardware */
if
(
p_intf
->
p_sys
->
b_playing
)
...
...
src/audio_output/output.c
View file @
85faf5c5
...
...
@@ -175,7 +175,7 @@ int aout_OutputNew( aout_instance_t * p_aout,
{
/* Non-S/PDIF mixer only deals with float32 or fixed32. */
p_aout
->
mixer
.
mixer
.
i_format
=
(
p_aout
->
p_libvlc_global
->
i_cpu
&
CPU_CAPABILITY_FPU
)
?
=
(
vlc_CPU
()
&
CPU_CAPABILITY_FPU
)
?
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
)
:
VLC_FOURCC
(
'f'
,
'i'
,
'3'
,
'2'
);
aout_FormatPrepare
(
&
p_aout
->
mixer
.
mixer
);
...
...
src/modules/modules.c
View file @
85faf5c5
...
...
@@ -76,6 +76,7 @@
#endif
#include "modules/configuration.h"
#include "libvlc.h"
#include "vlc_interface.h"
#include "vlc_playlist.h"
...
...
@@ -481,6 +482,7 @@ module_t * __module_Need( vlc_object_t *p_this, const char *psz_capability,
p_all
=
vlc_list_find
(
p_this
,
VLC_OBJECT_MODULE
,
FIND_ANYWHERE
);
p_list
=
malloc
(
p_all
->
i_count
*
sizeof
(
module_list_t
)
);
p_first
=
NULL
;
unsigned
i_cpu
=
vlc_CPU
();
/* Parse the module list for capabilities and probe each of them */
for
(
i_which_module
=
0
;
i_which_module
<
p_all
->
i_count
;
i_which_module
++
)
...
...
@@ -498,7 +500,7 @@ module_t * __module_Need( vlc_object_t *p_this, const char *psz_capability,
}
/* Test if we have the required CPU */
if
(
(
p_module
->
i_cpu
&
p_this
->
p_libvlc_global
->
i_cpu
)
!=
p_module
->
i_cpu
)
if
(
(
p_module
->
i_cpu
&
i_cpu
)
!=
p_module
->
i_cpu
)
{
continue
;
}
...
...
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