summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2017-10-19 14:36:20 -0700
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>2017-10-19 15:16:09 -0700
commit72b1484958dd033249d79dc61a6a12ff9b198700 (patch)
treeb7d71dfa2664ac2c947420e5272b13f279a8be00
parent27860cb0909a42ddbb74f01bea879a8afe2e8560 (diff)
tutorials: ios: basic: drop unneeded indentation from single block source code samples
-rw-r--r--markdown/tutorials/ios/a-basic-media-player.md24
1 files changed, 12 insertions, 12 deletions
diff --git a/markdown/tutorials/ios/a-basic-media-player.md b/markdown/tutorials/ios/a-basic-media-player.md
index f3020b7..50d5897 100644
--- a/markdown/tutorials/ios/a-basic-media-player.md
+++ b/markdown/tutorials/ios/a-basic-media-player.md
@@ -969,11 +969,11 @@ the `app_function` that fires 4 times per second (or every 250ms),
right before entering the main loop:
```
- /* Register a function that GLib will call 4 times per second */
- timeout_source = g_timeout_source_new (250);
- g_source_set_callback (timeout_source, (GSourceFunc)refresh_ui, (__bridge void *)self, NULL);
- g_source_attach (timeout_source, context);
- g_source_unref (timeout_source);
+/* Register a function that GLib will call 4 times per second */
+timeout_source = g_timeout_source_new (250);
+g_source_set_callback (timeout_source, (GSourceFunc)refresh_ui, (__bridge void *)self, NULL);
+g_source_attach (timeout_source, context);
+g_source_unref (timeout_source);
```
Then, in the refresh_ui method:
@@ -1047,14 +1047,14 @@ the `desired_position` variable. Then, in
the `state_changed_cb()` callback:
```
- if (old_state == GST_STATE_READY && new_state == GST_STATE_PAUSED)
- {
- check_media_size(self);
+if (old_state == GST_STATE_READY && new_state == GST_STATE_PAUSED)
+{
+ check_media_size(self);
- /* If there was a scheduled seek, perform it now that we have moved to the Paused state */
- if (GST_CLOCK_TIME_IS_VALID (self->desired_position))
- execute_seek (self->desired_position, self);
- }
+ /* If there was a scheduled seek, perform it now that we have moved to the Paused state */
+ if (GST_CLOCK_TIME_IS_VALID (self->desired_position))
+ execute_seek (self->desired_position, self);
+}
```
Once the pipeline moves from the `READY` to the `PAUSED` state, we check if