From: David Schleef Date: Mon, 22 Dec 2003 18:58:58 +0000 (+0000) Subject: Disable code which does stuff we don't approve of X-Git-Tag: BRANCH-RELEASE-0_7_4-ROOT~241 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=56de7957efc2cfc2f864f2cd096e41224c4afade;p=platform%2Fupstream%2Fgstreamer.git Disable code which does stuff we don't approve of Original commit message from CVS: Disable code which does stuff we don't approve of --- diff --git a/tests/old/testsuite/elements/tee.c b/tests/old/testsuite/elements/tee.c index 2c80393..2badd3e 100644 --- a/tests/old/testsuite/elements/tee.c +++ b/tests/old/testsuite/elements/tee.c @@ -42,10 +42,12 @@ main (int argc, char *argv[]) GstElement *pipeline = NULL; GstElement *tee, *src, *sink1, *sink2; GstPad *tee_src1, *tee_src2; +#if 0 GstCaps *src_caps = NULL; GstCaps *sink_caps = NULL; GstStructure *structure = NULL; GstPad *pad = NULL; +#endif /* init */ gst_init (&argc, &argv); @@ -97,6 +99,8 @@ main (int argc, char *argv[]) gst_element_set_state (pipeline, GST_STATE_PLAYING); gst_bin_iterate (GST_BIN (pipeline)); + /* We don't allow apps to call gst_pad_try_set_caps(). */ +#if 0 /* now we try setting caps on the src pad */ /* FIXME: should we set to pause here ? */ src_caps = gst_caps_from_string ("audio/raw, format=(s)\"int\", " @@ -136,6 +140,7 @@ main (int argc, char *argv[]) gst_structure_get_int (structure, "rate", &rate); g_print ("Rate of pad on sink2 : %d\n", rate); } +#endif /* remove the first one, iterate */ g_print ("Removing first sink\n"); diff --git a/testsuite/elements/tee.c b/testsuite/elements/tee.c index 2c80393..2badd3e 100644 --- a/testsuite/elements/tee.c +++ b/testsuite/elements/tee.c @@ -42,10 +42,12 @@ main (int argc, char *argv[]) GstElement *pipeline = NULL; GstElement *tee, *src, *sink1, *sink2; GstPad *tee_src1, *tee_src2; +#if 0 GstCaps *src_caps = NULL; GstCaps *sink_caps = NULL; GstStructure *structure = NULL; GstPad *pad = NULL; +#endif /* init */ gst_init (&argc, &argv); @@ -97,6 +99,8 @@ main (int argc, char *argv[]) gst_element_set_state (pipeline, GST_STATE_PLAYING); gst_bin_iterate (GST_BIN (pipeline)); + /* We don't allow apps to call gst_pad_try_set_caps(). */ +#if 0 /* now we try setting caps on the src pad */ /* FIXME: should we set to pause here ? */ src_caps = gst_caps_from_string ("audio/raw, format=(s)\"int\", " @@ -136,6 +140,7 @@ main (int argc, char *argv[]) gst_structure_get_int (structure, "rate", &rate); g_print ("Rate of pad on sink2 : %d\n", rate); } +#endif /* remove the first one, iterate */ g_print ("Removing first sink\n");