mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +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) {
|
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 */
|
||||||
|
|
Loading…
Reference in a new issue