multimedia/vlc: fix seek error with OSS
This commit is contained in:
parent
048e227920
commit
2a8e78d51a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332777
2 changed files with 18 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
PORTNAME= vlc
|
||||
DISTVERSION= 2.1.0
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
PORTEPOCH= 4
|
||||
CATEGORIES= multimedia audio ipv6 net www
|
||||
MASTER_SITES= http://download.videolan.org/pub/videolan/${PORTNAME}/${DISTVERSION:S/a$//}/ \
|
||||
|
|
17
multimedia/vlc/files/patch-oss2
Normal file
17
multimedia/vlc/files/patch-oss2
Normal file
|
@ -0,0 +1,17 @@
|
|||
Use SNDCTL_DSP_HALT ioctl instead, for some reason SNDCTL_DSP_HALT_OUTPUT
|
||||
does not seem to be flushing properly.
|
||||
|
||||
https://trac.videolan.org/vlc/ticket/9760
|
||||
diff --git modules/audio_output/oss.c modules/audio_output/oss.c
|
||||
index 8dc4a4a..940718f 100644
|
||||
--- modules/audio_output/oss.c
|
||||
+++ modules/audio_output/oss.c
|
||||
@@ -281,7 +282,7 @@ static void Flush (audio_output_t *aout, bool wait)
|
||||
|
||||
if (wait)
|
||||
return; /* drain is implicit with OSS */
|
||||
- ioctl (fd, SNDCTL_DSP_HALT_OUTPUT, NULL);
|
||||
+ ioctl (fd, SNDCTL_DSP_HALT, NULL);
|
||||
}
|
||||
|
||||
static int VolumeSync (audio_output_t *aout)
|
Loading…
Reference in a new issue