No need to check libde265 version again, already done by pkg-config.
Changed library order when linking.
Removed unnecessary curly brackets.
Field should be a "gboolean".
Use "g_malloc" / "g_free".
Use "GST_*_OBJECT" macros.
Fixed wrong indent.
Make sure buffer is unmapped if codec can't be flushed.
Handle case where format negotiation failed.
Initialize "stride" to default value.
Remove setting GST_VIDEO_CODEC_FRAME_FLAG_DECODE_ONLY, not required.
No C99 comments.
Make number of threads to use configurable.
Always get stream format / frame rate from caps, not from properties.
Map output frame and evaluate stride in non-direct rendering path.
Implement "finish" to drain remaining frames on end.