'Set the next file to be analyzed while keeping the pipeline
in the PAUSED state so that the rganalysis element can correctly
handle album gain.'

def _set_next_file(self):

    self._pipe.set_state(self.Gst.State.PAUSED)
    self._pipe.get_state(self.Gst.CLOCK_TIME_NONE)
    ret = self._set_file()
    if ret:
        self._pipe.seek_simple(self.Gst.Format.TIME, self.Gst.SeekFlags.FLUSH, 0)
        self._pipe.set_state(self.Gst.State.PLAYING)
    return ret
