Flush RTSP pipeline

Álvaro López López allopez at gmv.com
Thu Jul 26 04:12:23 PDT 2012


Hello everyone,

I am using the next pipeline to connect to a IP camera, which sends
MJPEG video through it:

rtspsrc name=rtspsrc ! queue ! rtpjpegdepay ! ffdec_mjpeg ! xvimagesink
name=videosink

e.g. URI = rtsp://192.168.0.25/live.sdp

I would like to know how to flush correctly the pipeline when I get the
end-of-stream message in the GstBus (GST_MESSAGE_EOS).

Currently, I set the pipeline to NULL and open it again:

gst_element_set_state (gstPipeline, GST_STATE_NULL);
gst_object_unref(gstPipeline);

[...]

gstPipeline = gst_pipeline_new (NULL);				
gstPipeline = gst_parse_launch(m_sGstLaunch,&error);

The main problem is the IP camera is also closing more connections I
need to work when I do this.

Thanks in advance,

Alvaro


______________________
This message including any attachments may contain confidential 
information, according to our Information Security Management System,
 and intended solely for a specific individual to whom they are addressed.
 Any unauthorised copy, disclosure or distribution of this message
 is strictly forbidden. If you have received this transmission in error,
 please notify the sender immediately and delete it.

______________________
Este mensaje, y en su caso, cualquier fichero anexo al mismo,
 puede contener informacion clasificada por su emisor como confidencial
 en el marco de su Sistema de Gestion de Seguridad de la 
Informacion siendo para uso exclusivo del destinatario, quedando 
prohibida su divulgacion copia o distribucion a terceros sin la 
autorizacion expresa del remitente. Si Vd. ha recibido este mensaje 
 erroneamente, se ruega lo notifique al remitente y proceda a su borrado. 
Gracias por su colaboracion.

______________________



More information about the gstreamer-devel mailing list