avmux: Remove unneeded constant variable

Since the removal of the gif hacks, the variable was always set to
its default value of FALSE. Just remove it.

CID #1433656
This commit is contained in:
Edward Hervey 2018-05-11 14:19:42 +02:00 committed by Edward Hervey
parent b894bedeb3
commit ad66c90ded

View file

@ -726,7 +726,6 @@ gst_ffmpegmux_collected (GstCollectPads * pads, gpointer user_data)
if (best_pad != NULL) { if (best_pad != NULL) {
GstBuffer *buf; GstBuffer *buf;
AVPacket pkt; AVPacket pkt;
gboolean need_free = FALSE;
GstMapInfo map; GstMapInfo map;
/* push out current buffer */ /* push out current buffer */
@ -757,11 +756,7 @@ gst_ffmpegmux_collected (GstCollectPads * pads, gpointer user_data)
else else
pkt.duration = 0; pkt.duration = 0;
av_write_frame (ffmpegmux->context, &pkt); av_write_frame (ffmpegmux->context, &pkt);
if (need_free) { gst_buffer_unmap (buf, &map);
g_free (pkt.data);
} else {
gst_buffer_unmap (buf, &map);
}
gst_buffer_unref (buf); gst_buffer_unref (buf);
} else { } else {
/* close down */ /* close down */