mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
shut up fakesrc and fakesink, changed sleeping a little
Original commit message from CVS: shut up fakesrc and fakesink, changed sleeping a little
This commit is contained in:
parent
3b50989958
commit
e430bc2d95
1 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,9 @@ int main(int argc,char *argv[]) {
|
|||
pipeline = gst_pipeline_new("pipeline");
|
||||
thread = gst_thread_new("thread");
|
||||
src = gst_elementfactory_make("fakesrc","src");
|
||||
gtk_object_set(GTK_OBJECT(src),"silent",TRUE,NULL);
|
||||
sink = gst_elementfactory_make("fakesink","sink");
|
||||
gtk_object_set(GTK_OBJECT(sink),"silent",TRUE,NULL);
|
||||
|
||||
fprintf(stderr,"ADDING src\n");
|
||||
gst_bin_add(thread,src);
|
||||
|
@ -30,6 +32,6 @@ int main(int argc,char *argv[]) {
|
|||
sleep(1);
|
||||
fprintf(stderr,"\nSWITCHING to PAUSED:\n");
|
||||
gst_element_set_state (thread, GST_STATE_PAUSED);
|
||||
sleep(1);
|
||||
// sleep(1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue