[pitivi] render: Fix the use of the GStreamer 1.0 caps API
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] render: Fix the use of the GStreamer 1.0 caps API
- Date: Sun, 2 Sep 2012 04:01:52 +0000 (UTC)
commit b209788435a7084883e4db5e7761ddf79f49998c
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Fri Aug 10 14:59:01 2012 -0400
render: Fix the use of the GStreamer 1.0 caps API
pitivi/render.py | 12 ++++++------
pitivi/settings.py | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/pitivi/render.py b/pitivi/render.py
index e5fbef0..5924cd8 100644
--- a/pitivi/render.py
+++ b/pitivi/render.py
@@ -947,17 +947,17 @@ class RenderDialog(Loggable):
self.window.hide() # Hide the rendering settings dialog while rendering
# FIXME GES: Handle presets here!
- self.containerprofile = EncodingContainerProfile(None, None,
- gst.Caps(self.muxertype), None)
+ self.containerprofile = EncodingContainerProfile.new(None, None,
+ gst.caps_from_string(self.muxertype), None)
if self.video_output_checkbutton.get_active():
- self.videoprofile = EncodingVideoProfile(
- gst.Caps(self.videotype), None,
+ self.videoprofile = EncodingVideoProfile.new(
+ gst.caps_from_string(self.videotype), None,
self.settings.getVideoCaps(True), 0)
self.containerprofile.add_profile(self.videoprofile)
if self.audio_output_checkbutton.get_active():
- self.audioprofile = EncodingAudioProfile(
- gst.Caps(self.audiotype), None,
+ self.audioprofile = EncodingAudioProfile.new(
+ gst.caps_from_string(self.audiotype), None,
self.settings.getAudioCaps(), 0)
self.containerprofile.add_profile(self.audioprofile)
diff --git a/pitivi/settings.py b/pitivi/settings.py
index d10969f..81d2e55 100644
--- a/pitivi/settings.py
+++ b/pitivi/settings.py
@@ -407,7 +407,7 @@ class MultimediaSettings(Signallable, Loggable):
videowidth, videoheight,
self.videopar.num, self.videopar.denom,
self.videorate.num, self.videorate.denom)
- caps_str = "video/x-raw,%s" % (vstr, vstr)
+ caps_str = "video/x-raw,%s" % (vstr)
video_caps = gst.caps_from_string(caps_str)
if self.vencoder:
return get_compatible_sink_caps(self.vencoder, video_caps)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]