Since the removal of the gif hacks, the variable was always set to
its default value of FALSE. Just remove it.
CID #1433656
if (best_pad != NULL) {
GstBuffer *buf;
AVPacket pkt;
- gboolean need_free = FALSE;
GstMapInfo map;
/* push out current buffer */
else
pkt.duration = 0;
av_write_frame (ffmpegmux->context, &pkt);
- if (need_free) {
- g_free (pkt.data);
- } else {
- gst_buffer_unmap (buf, &map);
- }
+ gst_buffer_unmap (buf, &map);
gst_buffer_unref (buf);
} else {
/* close down */