projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7780b29
)
moved debug to before _init so cmdline can override, and put sleep(1)'s in while...
author
Erik Walthinsen
<omega@temple-baptist.org>
Sat, 26 May 2001 05:26:47 +0000
(
05:26
+0000)
committer
Erik Walthinsen
<omega@temple-baptist.org>
Sat, 26 May 2001 05:26:47 +0000
(
05:26
+0000)
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)
tests/threadlock.c
patch
|
blob
|
history
diff --git
a/tests/threadlock.c
b/tests/threadlock.c
index
d8edf0b
..
34cc0e4
100644
(file)
--- a/
tests/threadlock.c
+++ b/
tests/threadlock.c
@@
-5,9
+5,9
@@
int main(int argc,char *argv[]) {
GstBin *pipeline, *thread;
GstElement *src, *queue1, *sink;
- gst_init(&argc,&argv);
gst_info_set_categories(-1);
gst_debug_set_categories(-1);
+ gst_init(&argc,&argv);
pipeline = gst_pipeline_new("pipeline");
thread = gst_thread_new("thread");
@@
-27,7
+27,9
@@
int main(int argc,char *argv[]) {
while (1) {
fprintf(stderr,"\nSWITCHING to PLAYING:\n");
gst_element_set_state (thread, GST_STATE_PLAYING);
+ sleep(1);
fprintf(stderr,"\nSWITCHING to PAUSED:\n");
gst_element_set_state (thread, GST_STATE_PAUSED);
+ sleep(1);
}
}