#include <gst/gst.h>
+/* this pipeline is:
+ * { fakesrc ! fakesink }
+ */
+
+
int main(int argc,char *argv[])
{
GstElement *fakesrc, *fakesink;
#include <gst/gst.h>
+/* this pipeline is:
+ * { filesrc ! mad ! osssink }
+ */
+
/* eos will be called when the src element has an end of stream */
void eos(GstElement *element, gpointer data)
{
for (x = 0 ; x < 10 ; x++){
g_print("playing %d\n", x);
gst_element_set_state(GST_ELEMENT(thread), GST_STATE_PLAYING);
- sleep(5);
+ sleep(2);
g_print("pausing %d\n", x);
gst_element_set_state(GST_ELEMENT(thread), GST_STATE_PAUSED);
#include <gst/gst.h>
+/* this pipeline is:
+ * { { fakesrc ! fakesink } }
+ */
+
int main(int argc,char *argv[])
{
GstElement *fakesrc, *fakesink;
gst_element_set_state(GST_ELEMENT(thread), GST_STATE_PLAYING);
sleep(1);
- g_print("pausing %d\n", x);
- gst_element_set_state(GST_ELEMENT(thread), GST_STATE_PAUSED);
+ g_print("nulling %d\n", x);
+ gst_element_set_state(GST_ELEMENT(thread), GST_STATE_NULL);
sleep(1);
}