[Gstreamer-bugs] [Bug 127084] New - gnomevfssink hangs from gst-python

bugzilla-daemon at widget.gnome.org bugzilla-daemon at widget.gnome.org
Sat Nov 15 18:13:20 PST 2003


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

http://bugzilla.gnome.org/show_bug.cgi?id=127084

Changed by mrroach at okmaybe.com.

--- shadow/127084	Sat Nov 15 21:13:20 2003
+++ shadow/127084.tmp.25773	Sat Nov 15 21:13:20 2003
@@ -0,0 +1,53 @@
+Bug#: 127084
+Product: GStreamer
+Version: 0.6.4
+OS: Linux
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: normal
+Priority: Normal
+Component: don't know
+AssignedTo: gstreamer-maint at bugzilla.gnome.org                            
+ReportedBy: mrroach at okmaybe.com               
+QAContact: gstreamer-maint at bugzilla.gnome.org
+TargetMilestone: HEAD
+URL: 
+Summary: gnomevfssink hangs from gst-python
+
+Writing the file using gnomevfssink completes, but after all the data is
+written, pipeline.iterate() never returns. Here is the relevant snippet:
+
+
+    filesrc = gstreamer.gst_element_factory_make ("gnomevfssrc", "src")
+    decoder = gstreamer.gst_element_factory_make ("mad", "decoder")
+    filesrc.set_property('location', src)
+    wavenc = gstreamer.gst_element_factory_make("wavenc", "encoder")
+    filesink = gstreamer.gst_element_factory_make("gnomevfssink", "filesink")
+    filesink.set_property('location', dest)
+    pipeline = gstreamer.Pipeline("pipeline")
+    
+    elements = filesrc, decoder, wavenc, filesink
+    for e in elements:
+        pipeline.add(e)
+    
+    previous = None
+    for e in elements:
+        if previous:
+            previous.link(e)
+        previous = e
+
+    source_pad = filesrc.get_pad("src")
+    pipeline.set_state(gstreamer.STATE_PLAYING);
+    
+    while pipeline.iterate(): 
+        pass                                                              
+         
+
+    pipeline.set_state(gstreamer.STATE_NULL)
+
+replacing gnomevfssink with filesink works just fine. If you need any more
+info, let me know.
+
+-Mark
+(BTW, there doesn't appear to be any gst-python component in bugzilla)




More information about the Gstreamer-bugs mailing list