mfc: Require one more output buffer than returned by the driver
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 2 Jan 2013 15:38:47 +0000 (16:38 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 2 Jan 2013 15:38:47 +0000 (16:38 +0100)
sys/mfc/mfc_decoder/mfc_decoder.c

index 48795e6..8ed2176 100644 (file)
@@ -370,7 +370,7 @@ static int get_minimum_output_buffers(struct mfc_dec_context *ctx)
         GST_ERROR ("Failed to get number of output buffers required");
         return -1;
     }
-    ctx->required_output_buffers = ctrl.value;
+    ctx->required_output_buffers = ctrl.value + 1;
     return 0;
 }