stopping the pipeline

Dušan Poizl poizl at maindata.sk
Tue Mar 11 11:50:04 PDT 2014


gst_element_seek_simple(pipeline, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT, 0);

Dňa 11.03.2014 13:24, leon wrote / napísal(a):
> Greetings!
>
> I have simple pipeline that plays video on the screen.
> when I hit the PAUSE -> PLAY -> (and again) PAUSE, it works well with the
> functions:
>
> gst_element_set_state (pipeline, data->GST_STATE_PLAYING );
> gst_element_set_state (pipeline, data-> GST_STATE_PAUSED);
>
> but now I need to stop the pipeline- so if I hit the PLAY button right after
> the STOP, the movie will start from the beginning.
>
> I saw the function
>
> gst_element_set_state (pipeline, data-> GST_STATE_READY);
>
> so when I hit the STOP button, the video freezes. but if I hit the PLAY
> button again- nothing happen
>
> any ideas of how making the video play from the beginning after STOP button?
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/stopping-the-pipeline-tp4665893.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