Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
3b9074b2
Commit
3b9074b2
authored
Nov 29, 2010
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
projectm: quick fix to get projectm visualisation to work on all locales
parent
d8e17e4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
modules/visualization/projectm.cpp
modules/visualization/projectm.cpp
+9
-0
No files found.
modules/visualization/projectm.cpp
View file @
3b9074b2
...
...
@@ -292,6 +292,8 @@ static void *Thread( void *p_data )
vout_opengl_t
*
gl
;
int
i_last_width
=
0
;
int
i_last_height
=
0
;
locale_t
loc
;
locale_t
oldloc
;
#ifdef HAVE_PROJECTM2
projectM
::
Settings
settings
;
#endif
...
...
@@ -339,6 +341,8 @@ static void *Thread( void *p_data )
goto
error
;
}
loc
=
newlocale
(
LC_NUMERIC_MASK
,
"C"
,
NULL
);
oldloc
=
uselocale
(
loc
);
/* Create the projectM object */
#ifndef HAVE_PROJECTM2
p_sys
->
p_projectm
=
new
projectM
(
p_sys
->
psz_config
);
...
...
@@ -402,6 +406,11 @@ static void *Thread( void *p_data )
delete
p_sys
->
p_projectm
;
vout_DeleteDisplay
(
p_sys
->
p_vd
,
NULL
);
vlc_object_release
(
p_sys
->
p_vout
);
if
(
loc
!=
(
locale_t
)
0
)
{
uselocale
(
oldloc
);
freelocale
(
loc
);
}
return
NULL
;
}
vlc_mutex_unlock
(
&
p_sys
->
lock
);
...
...
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