How to stop the pipeline gstreamer?

Kyrylo V Polezhaiev polezhaiev at ukr.net
Thu Apr 11 03:19:12 PDT 2013


I am not sure what did you meant. Try to use GST_STATE_PAUSED.

 --- Original message ---
From: "nghung270192" <nghung270192 at gmail.com>
Date: 11 April 2013, 12:49:37

 
> I'm a newbie of using gstreamer.
> My code is used to display preview or next photo when i press button.
> 
> code: 
> //created pipeline, elements and linked them
> ......
> data.loop = g_main_loop_new (NULL, FALSE);  
> 
> g_object_set (data.filesrc, "location", data.mang[i], NULL); 
> // load a photo in folder.i will change, each i, it give different  photo
> 
> gst_element_set_state (data.pipeline, GST_STATE_PLAYING); 
> g_main_loop_run (data.loop);
> 
> so I want to stop this pipeline to go back at starting of code  for i
> change. how do i stop pipeline?
> Thanks so much. 
> 
> 
> 
> 
> 
> 
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-stop-the-pipeline-gstreamer-tp4659472.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list