[gst-devel] Stop problems

René Stadler mail at renestadler.de
Sat Jan 6 15:52:37 CET 2007


Am Samstag, den 06.01.2007, 13:21 +0100 schrieb Andreas Volz:
> Hello,
> 
> First I do all the stuff to build the pipeline. Works so far..
> 
> Then I record a stream:
> 
> void record (char *file)
> {
>   g_object_set (G_OBJECT (sink), "location", file, NULL);
>   gst_element_set_state (pipeline, GST_STATE_PLAYING);
> }
> 
> And I stopt it:
> 
> void stop ()
> {
>   gst_element_set_state (pipeline, GST_STATE_NULL);
> }
> 
> If I start recording in another file again I get this:
> 
> WARNING **: Changing the `location' property on filesink when a file is
> open not supported.
> 
> If I unref the complete pipeline at stop() and rebuild it a record() it
> works. But I don't expect this is needed. So what operation is really
> needed to start recording in a new file? Or have I really to build a
> new pipeline?
> 
> regards
> Andreas

The filesink must be in the READY or NULL state when you change the
location (as the file is not opened then).

-- 
Regards,
  René Stadler





More information about the gstreamer-devel mailing list