Retry for negative return values when dequeueing buffers

This commit is contained in:
Sebastian Dröge 2012-09-06 17:24:04 +02:00
parent 911ca50971
commit 6a48db3d0f

View file

@ -704,6 +704,8 @@ retry:
g_assert_not_reached (); g_assert_not_reached ();
break; break;
} }
goto retry;
} }
GST_DEBUG_OBJECT (self, "Got output buffer at index %d", idx); 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 (); g_assert_not_reached ();
break; break;
} }
continue;
} }
if (idx >= self->n_input_buffers) if (idx >= self->n_input_buffers)