fix video stopping prematurely when using gstreamer backend (i hope)