gecko/media/liboggplay/trac466.patch
Chris Double d08a2e4711 Bug 480063 - Update liboggz and liboggplay to fix infinite loop bug - rs=roc
--HG--
extra : rebase_source : e05260747e635675fda3eb7bbaee4d1d3df85fcb
2009-05-12 15:27:23 +12:00

24 lines
586 B
Diff

diff --git a/media/liboggplay/src/liboggplay/oggplay.c b/media/liboggplay/src/liboggplay/oggplay.c
index 3296fea..d6256c6 100644
--- a/media/liboggplay/src/liboggplay/oggplay.c
+++ b/media/liboggplay/src/liboggplay/oggplay.c
@@ -708,14 +708,15 @@ read_more_data:
oggplay_data_clean_list (me->decode_data[i]);
}
+ if (me->shutdown) {
+ return E_OGGPLAY_OK;
+ }
+
if (info == NULL) {
goto read_more_data;
}
me->target += me->callback_period;
- if (me->shutdown) {
- return E_OGGPLAY_OK;
- }
if (r == -1) {
return E_OGGPLAY_USER_INTERRUPT;
}