Skip to content

Commit

Permalink
added the stream finalization
Browse files Browse the repository at this point in the history
  • Loading branch information
honkasuo committed Jun 30, 2009
1 parent a34bb26 commit 93b6ac7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gstshvideodec.c
Expand Up @@ -645,8 +645,15 @@ gst_shvideodec_decode (void *data)
GST_BUFFER_SIZE(buffer)-used_bytes);
}

if(!dec->running)
{
GST_DEBUG_OBJECT(dec,"We are done, calling finalize.");
shcodecs_decoder_finalize(dec->decoder);
GST_DEBUG_OBJECT(dec,"Stream finalized. Total decoded %d frames.",
shcodecs_decoder_get_frame_count(dec->decoder));
}
gst_buffer_unref(buffer);
buffer = NULL;
buffer = NULL;
}while(dec->running);

return NULL;
Expand Down

0 comments on commit 93b6ac7

Please sign in to comment.