mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
25 lines
762 B
Diff
25 lines
762 B
Diff
|
diff --git a/media/liboggplay/src/liboggplay/oggplay_seek.c b/media/liboggplay/src/liboggplay/oggplay_seek.c
|
||
|
--- a/media/liboggplay/src/liboggplay/oggplay_seek.c
|
||
|
+++ b/media/liboggplay/src/liboggplay/oggplay_seek.c
|
||
|
@@ -166,6 +166,20 @@ oggplay_seek_cleanup(OggPlay* me, ogg_in
|
||
|
|
||
|
*p = trash;
|
||
|
|
||
|
+ if (milliseconds == 0) {
|
||
|
+ for (i = 0; i < me->num_tracks; i++) {
|
||
|
+ OggPlayDecode *track = me->decode_data[i];
|
||
|
+ FishSound *sound_handle;
|
||
|
+ OggPlayAudioDecode *audio_decode;
|
||
|
+ if (track->content_type != OGGZ_CONTENT_VORBIS) {
|
||
|
+ continue;
|
||
|
+ }
|
||
|
+ audio_decode = (OggPlayAudioDecode*)track;
|
||
|
+ sound_handle = audio_decode->sound_handle;
|
||
|
+ fish_sound_reset(sound_handle);
|
||
|
+ }
|
||
|
+ }
|
||
|
+
|
||
|
return E_OGGPLAY_OK;
|
||
|
}
|
||
|
|