mfc: The first frame produces output in our case

This commit is contained in:
Sebastian Dröge 2013-01-02 15:40:10 +01:00
parent 0fbfe0225c
commit 710b7c3f2e

View file

@ -290,9 +290,7 @@ struct mfc_dec_context* mfc_dec_create(unsigned int codec)
pthread_mutex_unlock(&mutex);
ctx = calloc(1, sizeof (struct mfc_dec_context));
// The first frame never generate any output.
// TODO: do this better
ctx->output_frames_available = -1;
ctx->output_frames_available = 0;
if (!ctx) {
GST_ERROR ("Unable to allocate memory for context");
return NULL;