From 6a48db3d0f5535de8275bf2789cb6b29ace89e6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 6 Sep 2012 17:24:04 +0200 Subject: [PATCH] Retry for negative return values when dequeueing buffers --- sys/androidmedia/gstamcvideodec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/androidmedia/gstamcvideodec.c b/sys/androidmedia/gstamcvideodec.c index 1d4e2282be..2b2950f1fa 100644 --- a/sys/androidmedia/gstamcvideodec.c +++ b/sys/androidmedia/gstamcvideodec.c @@ -704,6 +704,8 @@ retry: g_assert_not_reached (); break; } + + goto retry; } GST_DEBUG_OBJECT (self, "Got output buffer at index %d", idx); @@ -1133,6 +1135,8 @@ gst_amc_video_dec_handle_frame (GstVideoDecoder * decoder, g_assert_not_reached (); break; } + + continue; } if (idx >= self->n_input_buffers)