g_free() is NULL-safe
(Includes unrelated formatting change to go through
indent checker commit hook)
goto bad_input_fmt;
/* second pass stats buffer no longer needed */
- if (ffmpegenc->context->stats_in)
- g_free (ffmpegenc->context->stats_in);
+ g_free (ffmpegenc->context->stats_in);
/* Store input state and set output state */
if (ffmpegenc->input_state)
}
cleanup_stats_in:
{
- if (ffmpegenc->context->stats_in)
- g_free (ffmpegenc->context->stats_in);
+ g_free (ffmpegenc->context->stats_in);
return FALSE;
}
}
goto encode_fail;
/* Encoder needs more data */
- if (!have_data)
- {
+ if (!have_data) {
gst_video_codec_frame_unref (frame);
return GST_FLOW_OK;
}