[pitivi/ges: 45/287] project: Use the GstPipeline method on GstPipelines
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/ges: 45/287] project: Use the GstPipeline method on GstPipelines
- Date: Thu, 15 Mar 2012 16:29:36 +0000 (UTC)
commit 020bd48df15c914684ce74cd8d7331fba121521a
Author: Thibault Saunier <thibault saunier collabora com>
Date: Mon Oct 3 21:03:04 2011 -0300
project: Use the GstPipeline method on GstPipelines
Not old school pitivi core pipeline methods
pitivi/project.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index 7e27e17..5fa459e 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -153,6 +153,6 @@ class Project(Signallable, Loggable):
for fact in self.sources.getSources():
fact.setFilterCaps(self._videocaps)
- if self.pipeline.getState() != gst.STATE_NULL:
- self.pipeline.stop()
- self.pipeline.pause()
+ if self.pipeline.get_state() != gst.STATE_NULL:
+ self.pipeline.set_state(gst.STATE_READY)
+ self.pipeline.set_state(gst.STATE_PAUSED)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]