[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gstreamer-bugs
Subject:    [Gstreamer-bugs] [Bug 132935] New - setting pipeline -> NULL -> PLAYING doesn't restart stream
From:       bugzilla-daemon () widget ! gnome ! org
Date:       2004-01-30 4:49:53
Message-ID: 20040130044953.9D04A4043D () widget ! gnome ! org
[Download RAW message or body]

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@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@bugzilla.gnome.org                            
+ReportedBy: desrt@desrt.ca               
+QAContact: gstreamer-maint@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.


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Gstreamer-bugs mailing list
Gstreamer-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic