Fixed tee test

Original commit message from CVS:
Fixed tee test
This commit is contained in:
Wim Taymans 2003-01-25 19:56:04 +00:00
parent c978bd79b8
commit 0b7dfe8972
2 changed files with 8 additions and 4 deletions

View file

@ -126,7 +126,7 @@ main (int argc, char *argv[])
else else
{ {
int rate; int rate;
gst_props_get (props, "rate", &rate); gst_props_get (props, "rate", &rate, NULL);
g_print ("Rate of pad on sink1 : %d\n", rate); g_print ("Rate of pad on sink1 : %d\n", rate);
} }
sink_caps = gst_pad_get_caps (gst_element_get_pad (sink2, "sink")); sink_caps = gst_pad_get_caps (gst_element_get_pad (sink2, "sink"));
@ -139,7 +139,7 @@ main (int argc, char *argv[])
else else
{ {
int rate; int rate;
gst_props_get (props, "rate", &rate); gst_props_get (props, "rate", &rate, NULL);
g_print ("Rate of pad on sink2 : %d\n", rate); g_print ("Rate of pad on sink2 : %d\n", rate);
} }
@ -161,6 +161,8 @@ main (int argc, char *argv[])
/* in 0.3.2 the next statement gives an assert error */ /* in 0.3.2 the next statement gives an assert error */
tee_src1 = gst_element_get_request_pad (tee, "src%d"); tee_src1 = gst_element_get_request_pad (tee, "src%d");
gst_element_set_state (pipeline, GST_STATE_NULL);
g_print ("Done !\n"); g_print ("Done !\n");
return 0; return 0;
} }

View file

@ -126,7 +126,7 @@ main (int argc, char *argv[])
else else
{ {
int rate; int rate;
gst_props_get (props, "rate", &rate); gst_props_get (props, "rate", &rate, NULL);
g_print ("Rate of pad on sink1 : %d\n", rate); g_print ("Rate of pad on sink1 : %d\n", rate);
} }
sink_caps = gst_pad_get_caps (gst_element_get_pad (sink2, "sink")); sink_caps = gst_pad_get_caps (gst_element_get_pad (sink2, "sink"));
@ -139,7 +139,7 @@ main (int argc, char *argv[])
else else
{ {
int rate; int rate;
gst_props_get (props, "rate", &rate); gst_props_get (props, "rate", &rate, NULL);
g_print ("Rate of pad on sink2 : %d\n", rate); g_print ("Rate of pad on sink2 : %d\n", rate);
} }
@ -161,6 +161,8 @@ main (int argc, char *argv[])
/* in 0.3.2 the next statement gives an assert error */ /* in 0.3.2 the next statement gives an assert error */
tee_src1 = gst_element_get_request_pad (tee, "src%d"); tee_src1 = gst_element_get_request_pad (tee, "src%d");
gst_element_set_state (pipeline, GST_STATE_NULL);
g_print ("Done !\n"); g_print ("Done !\n");
return 0; return 0;
} }