videoencoder: unused value

Value set in ret is immediately overwritten in the next line outside of the if
block. Run reset but don't store return.

CID #1226470
This commit is contained in:
Luis de Bethencourt 2015-03-09 11:25:41 +00:00
parent 8296cdbfd5
commit fedc1dba1a

View file

@ -628,7 +628,7 @@ gst_video_encoder_setcaps (GstVideoEncoder * encoder, GstCaps * caps)
if (encoder_class->reset) {
GST_FIXME_OBJECT (encoder, "GstVideoEncoder::reset() is deprecated");
ret = encoder_class->reset (encoder, TRUE);
encoder_class->reset (encoder, TRUE);
}
/* and subclass should be ready to configure format at any time around */