basesrc: Only set duration/position query values in case of query success
authorCarlos Rafael Giani <dv@pseudoterminal.org>
Mon, 11 Jan 2016 20:17:25 +0000 (21:17 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 11 Jan 2016 20:42:10 +0000 (21:42 +0100)
commit91496281eb1090e31040565471dfe080964bbd41
tree3e66f0d804dee24a439d0ca4ff704d4a1f2cdbf0
parent30741e02061f73b8ebad7c5bd1e08c243bf6de5c
basesrc: Only set duration/position query values in case of query success

Currently, the query values are being set even if the query itself was
determined to have failed. Fix this to ensure the values are only set in
case of a query success.

https://bugzilla.gnome.org/show_bug.cgi?id=760479
libs/gst/base/gstbasesrc.c