Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 265748
Collapse All | Expand All

(-)a/pitivi/timeline/timeline.py (-12 / +12 lines)
Lines 194-215 class Timeline(Serializable, Signallable): Link Here
194
        self.emit("start-duration-changed", self.start, self.duration)
194
        self.emit("start-duration-changed", self.start, self.duration)
195
195
196
    def getAutoSettings(self):
196
    def getAutoSettings(self):
197
        vs = self.videocomp._getAutoSettings()
197
        vcvs = self.videocomp._getAutoSettings()
198
        as = self.audiocomp._getAutoSettings()
198
        acas = self.audiocomp._getAutoSettings()
199
        if not vs and not as:
199
        if not vcvs and not acas:
200
            return None
200
            return None
201
        # return an ExportSettings containing the combination of
201
        # return an ExportSettings containing the combination of
202
        # the autosettings from the audio and video composition.
202
        # the autosettings from the audio and video composition.
203
        settings = ExportSettings()
203
        settings = ExportSettings()
204
        if vs:
204
        if vcvs:
205
            settings.videowidth = vs.videowidth
205
            settings.videowidth = vcvs.videowidth
206
            settings.videoheight = vs.videoheight
206
            settings.videoheight = vcvs.videoheight
207
            settings.videorate = vs.videorate
207
            settings.videorate = vcvs.videorate
208
            settings.videopar = vs.videopar
208
            settings.videopar = vcvs.videopar
209
        if as:
209
        if acas:
210
            settings.audiochannels = as.audiochannels
210
            settings.audiochannels = acas.audiochannels
211
            settings.audiorate = as.audiorate
211
            settings.audiorate = acas.audiorate
212
            settings.audiodepth = as.audiodepth
212
            settings.audiodepth = acas.audiodepth
213
        return settings
213
        return settings
214
214
215
    def getDuration(self):
215
    def getDuration(self):

Return to bug 265748