Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
f776b2cb
Commit
f776b2cb
authored
Sep 11, 2002
by
Stéphane Borel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.Quick hack to make spdif work with emu10k1 oss driver. Still buggy.
parent
51d40ac7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
modules/audio_output/oss.c
modules/audio_output/oss.c
+23
-2
No files found.
modules/audio_output/oss.c
View file @
f776b2cb
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* oss.c : OSS /dev/dsp module for vlc
* oss.c : OSS /dev/dsp module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000-2002 VideoLAN
* Copyright (C) 2000-2002 VideoLAN
* $Id: oss.c,v 1.2
3 2002/09/02 23:17:05 massiot
Exp $
* $Id: oss.c,v 1.2
4 2002/09/11 23:10:30 stef
Exp $
*
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
* Samuel Hocevar <sam@zoy.org>
...
@@ -351,7 +351,28 @@ static int OSSThread( aout_instance_t * p_aout )
...
@@ -351,7 +351,28 @@ static int OSSThread( aout_instance_t * p_aout )
}
}
else
else
{
{
p_buffer
=
aout_OutputNextBuffer
(
p_aout
,
0
,
VLC_TRUE
);
/* emu10k1 driver does not report Buffer Duration correctly in
* passthrough mode so we have to cheat */
if
(
!
next_date
)
{
next_date
=
mdate
();
}
else
{
mtime_t
delay
=
next_date
-
mdate
();
if
(
delay
>
AOUT_PTS_TOLERANCE
)
{
msleep
(
delay
/
2
);
}
}
while
(
!
(
p_buffer
=
aout_OutputNextBuffer
(
p_aout
,
next_date
,
VLC_TRUE
)
)
)
{
msleep
(
10000
);
next_date
=
mdate
();
}
}
}
if
(
p_buffer
!=
NULL
)
if
(
p_buffer
!=
NULL
)
...
...
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