mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
moved debug to before _init so cmdline can override, and put sleep(1)'s in while(1) to increase chance of contention ...
Original commit message from CVS: moved debug to before _init so cmdline can override, and put sleep(1)'s in while(1) to increase chance of contention (I think)
This commit is contained in:
parent
7780b294e3
commit
3b50989958
1 changed files with 3 additions and 1 deletions
|
@ -5,9 +5,9 @@ int main(int argc,char *argv[]) {
|
||||||
GstBin *pipeline, *thread;
|
GstBin *pipeline, *thread;
|
||||||
GstElement *src, *queue1, *sink;
|
GstElement *src, *queue1, *sink;
|
||||||
|
|
||||||
gst_init(&argc,&argv);
|
|
||||||
gst_info_set_categories(-1);
|
gst_info_set_categories(-1);
|
||||||
gst_debug_set_categories(-1);
|
gst_debug_set_categories(-1);
|
||||||
|
gst_init(&argc,&argv);
|
||||||
|
|
||||||
pipeline = gst_pipeline_new("pipeline");
|
pipeline = gst_pipeline_new("pipeline");
|
||||||
thread = gst_thread_new("thread");
|
thread = gst_thread_new("thread");
|
||||||
|
@ -27,7 +27,9 @@ int main(int argc,char *argv[]) {
|
||||||
while (1) {
|
while (1) {
|
||||||
fprintf(stderr,"\nSWITCHING to PLAYING:\n");
|
fprintf(stderr,"\nSWITCHING to PLAYING:\n");
|
||||||
gst_element_set_state (thread, GST_STATE_PLAYING);
|
gst_element_set_state (thread, GST_STATE_PLAYING);
|
||||||
|
sleep(1);
|
||||||
fprintf(stderr,"\nSWITCHING to PAUSED:\n");
|
fprintf(stderr,"\nSWITCHING to PAUSED:\n");
|
||||||
gst_element_set_state (thread, GST_STATE_PAUSED);
|
gst_element_set_state (thread, GST_STATE_PAUSED);
|
||||||
|
sleep(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue