rtspsrc: fix query leak

https://bugzilla.gnome.org/show_bug.cgi?id=733003
This commit is contained in:
Tim-Philipp Müller 2014-07-10 17:19:42 +01:00
parent dd5144fd4e
commit c2614e5253

View file

@ -2328,12 +2328,16 @@ gst_rtspsrc_get_position (GstRTSPSrc * src)
GST_DEBUG_OBJECT (src, "retaining position %" GST_TIME_FORMAT,
GST_TIME_ARGS (pos));
src->last_pos = pos;
return;
goto out;
}
}
}
src->last_pos = 0;
out:
gst_query_unref (query);
}
static gboolean