[pitivi] render: migrate element_factory_find to ElementFactory.find
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] render: migrate element_factory_find to ElementFactory.find
- Date: Sun, 2 Sep 2012 04:00:40 +0000 (UTC)
commit 9b9efa980ec5b2d30d3ec916669e65247fca70fe
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Thu Aug 9 00:06:41 2012 -0400
render: migrate element_factory_find to ElementFactory.find
This at least allows the render dialog to show up
pitivi/render.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/render.py b/pitivi/render.py
index 7d415be..f44519b 100644
--- a/pitivi/render.py
+++ b/pitivi/render.py
@@ -537,7 +537,7 @@ class RenderDialog(Loggable):
lambda: get_combo_value(widget))
def muxer_setter(self, widget, value):
- set_combo_value(widget, gst.element_factory_find(value))
+ set_combo_value(widget, gst.ElementFactory.find(value))
self.settings.setEncoders(muxer=value)
# Update the extension of the filename.
@@ -552,14 +552,14 @@ class RenderDialog(Loggable):
self.muxer_combo_changing = False
def acodec_setter(self, widget, value):
- set_combo_value(widget, gst.element_factory_find(value))
+ set_combo_value(widget, gst.ElementFactory.find(value))
self.settings.setEncoders(aencoder=value)
if not self.muxer_combo_changing:
# The user directly changed the audio encoder combo.
self.preferred_aencoder = value
def vcodec_setter(self, widget, value):
- set_combo_value(widget, gst.element_factory_find(value))
+ set_combo_value(widget, gst.ElementFactory.find(value))
self.settings.setEncoders(vencoder=value)
if not self.muxer_combo_changing:
# The user directly changed the video encoder combo.
@@ -787,7 +787,7 @@ class RenderDialog(Loggable):
# Muxer settings
# note: this will trigger an update of the codec comboboxes
set_combo_value(self.muxercombobox,
- gst.element_factory_find(self.settings.muxer))
+ gst.ElementFactory.find(self.settings.muxer))
def _checkForExistingFile(self, *args):
"""
@@ -840,7 +840,7 @@ class RenderDialog(Loggable):
if preferred_encoder:
# A preference exists, pick it if it can be found in
# the current model of the combobox.
- vencoder = gst.element_factory_find(preferred_encoder)
+ vencoder = gst.ElementFactory.find(preferred_encoder)
set_combo_value(encoder_combo, vencoder, default_index=0)
else:
# No preference exists, pick the first encoder from
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]