[Gstreamer-bugs] [Bug 132935] New - setting pipeline -> NULL -> PLAYING doesn't restart stream

bugzilla-daemon at widget.gnome.org bugzilla-daemon at widget.gnome.org
Thu Jan 29 20:49:53 PST 2004


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=132935

Changed by desrt at desrt.ca.

--- shadow/132935	Thu Jan 29 23:49:53 2004
+++ shadow/132935.tmp.14948	Thu Jan 29 23:49:53 2004
@@ -0,0 +1,39 @@
+Bug#: 132935
+Product: GStreamer
+Version: HEAD CVS
+OS: Linux
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: normal
+Priority: Normal
+Component: gstreamer (core)
+AssignedTo: gstreamer-maint at bugzilla.gnome.org                            
+ReportedBy: desrt at desrt.ca               
+QAContact: gstreamer-maint at bugzilla.gnome.org
+TargetMilestone: HEAD
+URL: 
+Summary: setting pipeline -> NULL -> PLAYING doesn't restart stream
+
+I have this code in a program that uses CVS HEAD gstreamer (from an hour ago):
+
+  gst_element_set_state( gst->pipeline, GST_STATE_NULL );
+                                                                          
+       gst_bin_remove( GST_BIN( gst->pipeline ), gst->decoder );
+  gst->decoder = gst_element_factory_make( "spider", "decoder" );
+  gst_bin_add( GST_BIN( gst->pipeline ), gst->decoder );
+  gst_element_link_many( gst->src, gst->decoder, gst->sink, NULL );
+                                                                          
+       g_object_set( G_OBJECT( gst->src ), "location", uri, NULL );
+  gst_element_set_state( gst->pipeline, GST_STATE_PLAYING );
+
+The idea is to reuse the src and sink elements of the pipeline to play
+another file.  The decoder (spider) element has to be created fresh in the
+case that the file format has changed (otherwise it doesn't work).
+
+What's odd, though, is that when the pipeline goes back to the PLAYING
+state, it picks up where it left off.
+
+That is: if you 'switch' to the same song, there is a slight pause and no
+other effect.  If you switch to a different song, then the song starts
+playing at the timepoint that you *stopped* playing the song before it.




More information about the Gstreamer-bugs mailing list