[pitivi] Render: don't use the caps name for the muxer / encoder caps.



commit c2fb6f8b34fa150d636dc2454e8323108355ed65
Author: Mathieu Duponchelle <mduponchelle1 gmail com>
Date:   Mon Nov 25 23:09:34 2013 +0100

    Render: don't use the caps name for the muxer / encoder caps.
    
    Instead use their stringified version.
    Makes us able to render in MP4 and MPEG-TS.

 pitivi/project.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index a07c59c..5a2416f 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -749,7 +749,7 @@ class Project(Loggable, GES.Project):
             else:
                 for template in feature.get_static_pad_templates():
                     if template.name_template == "src":
-                        audiotype = template.get_caps()[0].get_name()
+                        audiotype = template.get_caps()[0].to_string()
                         break
                 self.audio_profile.set_format(Gst.Caps(audiotype))
             self.audio_profile.set_preset_name(value)
@@ -769,7 +769,7 @@ class Project(Loggable, GES.Project):
             else:
                 for template in feature.get_static_pad_templates():
                     if template.name_template == "src":
-                        videotype = template.get_caps()[0].get_name()
+                        videotype = template.get_caps()[0].to_string()
                         break
                 self.video_profile.set_format(Gst.Caps(videotype))
 
@@ -790,7 +790,7 @@ class Project(Loggable, GES.Project):
             else:
                 for template in feature.get_static_pad_templates():
                     if template.name_template == "src":
-                        muxertype = template.get_caps()[0].get_name()
+                        muxertype = template.get_caps()[0].to_string()
                         break
                 self.container_profile.set_format(Gst.Caps(muxertype))
             self.container_profile.set_preset_name(value)


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