mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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>
This commit is contained in:
parent
7b390a8bbd
commit
e527eb3e4c
1 changed files with 1 additions and 1 deletions
|
@ -3219,7 +3219,7 @@ gst_rtp_bin_handle_message (GstBin * bin, GstMessage * message)
|
||||||
streams = g_slist_next (streams)) {
|
streams = g_slist_next (streams)) {
|
||||||
GstRtpBinStream *stream = (GstRtpBinStream *) streams->data;
|
GstRtpBinStream *stream = (GstRtpBinStream *) streams->data;
|
||||||
GstElement *element = stream->buffer;
|
GstElement *element = stream->buffer;
|
||||||
guint64 last_out;
|
guint64 last_out = -1;
|
||||||
|
|
||||||
if (g_signal_lookup ("set-active", G_OBJECT_TYPE (element)) != 0) {
|
if (g_signal_lookup ("set-active", G_OBJECT_TYPE (element)) != 0) {
|
||||||
g_signal_emit_by_name (element, "set-active", active, offset,
|
g_signal_emit_by_name (element, "set-active", active, offset,
|
||||||
|
|
Loading…
Reference in a new issue