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
fd62016c
Commit
fd62016c
authored
Apr 22, 2003
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* output.c: avoid a floating point exception when aout-rate==0
* gtk2_api.cpp: made valgrind happy ;)
parent
73867cc4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
modules/gui/skins/gtk2/gtk2_api.cpp
modules/gui/skins/gtk2/gtk2_api.cpp
+8
-2
modules/gui/skins/src/skin_main.cpp
modules/gui/skins/src/skin_main.cpp
+3
-3
src/audio_output/output.c
src/audio_output/output.c
+3
-1
No files found.
modules/gui/skins/gtk2/gtk2_api.cpp
View file @
fd62016c
...
...
@@ -2,7 +2,7 @@
* gtk2_api.cpp: Various gtk2-specific functions
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_api.cpp,v 1.1
3 2003/04/21 21:51:16
asmax Exp $
* $Id: gtk2_api.cpp,v 1.1
4 2003/04/22 19:26:02
asmax Exp $
*
* Authors: Cyril Deguet <asmax@videolan.org>
*
...
...
@@ -52,19 +52,25 @@ void OSAPI_SendMessage( SkinWindow *win, unsigned int message, unsigned int para
void
OSAPI_PostMessage
(
SkinWindow
*
win
,
unsigned
int
message
,
unsigned
int
param1
,
long
param2
)
{
GdkEventClient
*
event
=
new
GdkEventCli
ent
;
GdkEventClient
*
event
=
(
GdkEventClient
*
)
new
GdkEv
ent
;
event
->
type
=
GDK_CLIENT_EVENT
;
if
(
win
==
NULL
)
{
event
->
window
=
NULL
;
}
else
{
event
->
window
=
((
GTK2Window
*
)
win
)
->
GetHandle
();
}
event
->
send_event
=
0
;
event
->
message_type
=
NULL
;
event
->
data_format
=
32
;
event
->
data
.
l
[
0
]
=
message
;
event
->
data
.
l
[
1
]
=
param1
;
event
->
data
.
l
[
2
]
=
param2
;
event
->
data
.
l
[
3
]
=
0
;
event
->
data
.
l
[
4
]
=
0
;
gdk_event_put
(
(
GdkEvent
*
)
event
);
...
...
modules/gui/skins/src/skin_main.cpp
View file @
fd62016c
...
...
@@ -2,7 +2,7 @@
* skin-main.cpp: skins plugin for VLC
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: skin_main.cpp,v 1.1
6 2003/04/21 18:39:39
asmax Exp $
* $Id: skin_main.cpp,v 1.1
7 2003/04/22 19:26:02
asmax Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -107,8 +107,8 @@ static int Open ( vlc_object_t *p_this )
#if !defined WIN32
// Initialize GDK
int
i_args
=
1
;
char
*
p_args
[]
=
{
""
,
NULL
};
int
i_args
=
3
;
char
*
p_args
[]
=
{
""
,
""
,
"--sync"
,
NULL
};
char
**
pp_args
=
p_args
;
gdk_init
(
&
i_args
,
&
pp_args
);
...
...
src/audio_output/output.c
View file @
fd62016c
...
...
@@ -2,7 +2,7 @@
* output.c : internal management of output streams for the audio output
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: output.c,v 1.3
6 2003/02/08 17:26:00 massiot
Exp $
* $Id: output.c,v 1.3
7 2003/04/22 19:26:02 asmax
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -44,6 +44,8 @@ int aout_OutputNew( aout_instance_t * p_aout,
char
*
psz_name
=
config_GetPsz
(
p_aout
,
"aout"
);
int
i_rate
=
config_GetInt
(
p_aout
,
"aout-rate"
);
vlc_value_t
val
;
/* kludge to avoid a fpu error when rate is 0... */
if
(
i_rate
==
0
)
i_rate
=
-
1
;
memcpy
(
&
p_aout
->
output
.
output
,
p_format
,
sizeof
(
audio_sample_format_t
)
);
if
(
i_rate
!=
-
1
)
...
...
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