rtpbin: Initialize uninitialized variable correctly
authorSebastian Dröge <sebastian@centricular.com>
Fri, 5 Jun 2020 08:49:17 +0000 (11:49 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 5 Jun 2020 08:49:17 +0000 (11:49 +0300)
commite527eb3e4c9f949f5f43537550a50cd295f2d999
tree0624e9556c5aeecd4bb93991fd90b3897428dbec
parent7b390a8bbd0da33199e3c083f13bf5cd1a825a96
rtpbin: Initialize uninitialized variable correctly

`last_out` would be used uninitialized if the element has no `set-active`
signal. Initialize it to -1 as that's what the "default" value is
further below.

CID 1455443

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/727

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/613>
gst/rtpmanager/gstrtpbin.c