mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-25 10:04:19 +00:00
mfc: The first frame produces output in our case
This commit is contained in:
parent
0fbfe0225c
commit
710b7c3f2e
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue