[pitivi/ges: 117/287] ui: Use the ges enum in the encoding dialog
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges: 117/287] ui: Use the ges enum in the encoding dialog
- Date: Thu, 15 Mar 2012 16:35:39 +0000 (UTC)
commit c6a5b9aa43c2212f11ba5df8d1eab8c42d3736c7
Author: Thibault Saunier <thibault saunier collabora com>
Date: Sat Dec 24 19:23:23 2011 +0100
ui: Use the ges enum in the encoding dialog
pitivi/ui/encodingdialog.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/encodingdialog.py b/pitivi/ui/encodingdialog.py
index 86f3767..c1b94f2 100644
--- a/pitivi/ui/encodingdialog.py
+++ b/pitivi/ui/encodingdialog.py
@@ -27,6 +27,7 @@ Render dialog
import os
import gtk
import gst
+import ges
import time
from gettext import gettext as _
@@ -660,7 +661,7 @@ class EncodingDialog(Loggable):
def startAction(self):
""" Start the render process """
self._pipeline.set_state(gst.STATE_NULL)
- self._pipeline.set_mode("render")
+ self._pipeline.set_mode(ges.TIMELINE_MODE_SMART_RENDER)
encodebin = self._pipeline.get_by_name("internal-encodebin")
self._gstSigId[encodebin] = encodebin.connect("element-added",
self._elementAddedCb)
@@ -677,7 +678,7 @@ class EncodingDialog(Loggable):
and disconnect from its signals """
self._pipeline.set_state(gst.STATE_NULL)
self._disconnectFromGst()
- self._pipeline.set_mode(3) # Reset to preview mode for audio and video
+ self._pipeline.set_mode(ges.TIMELINE_MODE_PREVIEW)
def _pauseRender(self, progress):
togglePlayback(self._pipeline)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]