summaryrefslogtreecommitdiff
path: root/tests/probes
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-03-15 19:27:17 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-03-15 19:27:17 +0000
commit7baa6c18e7ea33c0783aa227838544a53393a939 (patch)
tree2828012c446780bfaa5276fa3ab23be4a975e52d /tests/probes
parent84f49e604dc2940a8f58de9f89a27b8dcab3498f (diff)
don't mix tabs and spaces
Original commit message from CVS: don't mix tabs and spaces
Diffstat (limited to 'tests/probes')
-rw-r--r--tests/probes/probetest.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/probes/probetest.c b/tests/probes/probetest.c
index e171e1cbd..22355c714 100644
--- a/tests/probes/probetest.c
+++ b/tests/probes/probetest.c
@@ -9,25 +9,25 @@ notify (GstProbe * probe, GstData ** data, gpointer user_data)
switch (state) {
case 0:
if (GST_BUFFER_TIMESTAMP (*data) == 10) {
- gst_element_set_state (GST_ELEMENT (bin), GST_STATE_PAUSED);
-
- gst_element_unlink_pads (GST_ELEMENT (src1), "src", sink, "sink");
- gst_bin_add (GST_BIN (bin), src2);
- gst_bin_remove (GST_BIN (bin), src1);
- gst_element_link_pads (GST_ELEMENT (src2), "src", sink, "sink");
- gst_element_set_state (GST_ELEMENT (bin), GST_STATE_PLAYING);
- state++;
- gst_data_unref (*data);
- return FALSE;
+ gst_element_set_state (GST_ELEMENT (bin), GST_STATE_PAUSED);
+
+ gst_element_unlink_pads (GST_ELEMENT (src1), "src", sink, "sink");
+ gst_bin_add (GST_BIN (bin), src2);
+ gst_bin_remove (GST_BIN (bin), src1);
+ gst_element_link_pads (GST_ELEMENT (src2), "src", sink, "sink");
+ gst_element_set_state (GST_ELEMENT (bin), GST_STATE_PLAYING);
+ state++;
+ gst_data_unref (*data);
+ return FALSE;
}
break;
case 1:
GST_BUFFER_TIMESTAMP (*data) = GST_BUFFER_TIMESTAMP (*data) + 10;
if (GST_BUFFER_TIMESTAMP (*data) == 20) {
- gst_data_unref (*data);
- *data = GST_DATA (gst_event_new (GST_EVENT_EOS));
- gst_element_set_state (src2, GST_STATE_PAUSED);
- return TRUE;
+ gst_data_unref (*data);
+ *data = GST_DATA (gst_event_new (GST_EVENT_EOS));
+ gst_element_set_state (src2, GST_STATE_PAUSED);
+ return TRUE;
}
break;
default: