[pitivi] project: Avoid using buggy is_equal



commit b573c10b227322f924029a06586de3e0cb16bec9
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Sun Sep 6 22:01:18 2020 +0200

    project: Avoid using buggy is_equal
    
    When using is_equal the comparison is ignoring the restriction caps.
    This means when loading a saved project, the project settings are lost.

 pitivi/project.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index 8612ce7a..4afec1f2 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -1503,7 +1503,7 @@ class Project(Loggable, GES.Project):
         Args:
             container_profile (GstPbutils.EncodingContainerProfile): The profile to use.
         """
-        if self.container_profile.is_equal(container_profile):
+        if container_profile == self.container_profile:
             return True
 
         muxer = self._get_element_factory_name(container_profile)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]