mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
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:
parent
b894bedeb3
commit
ad66c90ded
1 changed files with 1 additions and 6 deletions
|
@ -726,7 +726,6 @@ gst_ffmpegmux_collected (GstCollectPads * pads, gpointer user_data)
|
|||
if (best_pad != NULL) {
|
||||
GstBuffer *buf;
|
||||
AVPacket pkt;
|
||||
gboolean need_free = FALSE;
|
||||
GstMapInfo map;
|
||||
|
||||
/* push out current buffer */
|
||||
|
@ -757,11 +756,7 @@ gst_ffmpegmux_collected (GstCollectPads * pads, gpointer user_data)
|
|||
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 */
|
||||
|
|
Loading…
Reference in a new issue