diff --git a/gst/encoding/gstencodebin.c b/gst/encoding/gstencodebin.c index 8e8ebf5ea5..d1ce16954a 100644 --- a/gst/encoding/gstencodebin.c +++ b/gst/encoding/gstencodebin.c @@ -1321,7 +1321,6 @@ _create_stream_group (GstEncodeBin * ebin, GstEncodingProfile * sprof, GST_LOG ("Adding encoder"); sgroup->encoder = _get_encoder (ebin, sprof); if (sgroup->encoder != NULL) { - last = sgroup->encoder; gst_bin_add ((GstBin *) ebin, sgroup->encoder); tosync = g_list_append (tosync, sgroup->encoder);