[vlc-devel] [PATCH 3/4] lib: media_player: re-indent after last commit

Thomas Guillem thomas at gllm.fr
Fri Sep 18 09:42:53 CEST 2020


No functional changes.
---
 lib/media_player.c | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/lib/media_player.c b/lib/media_player.c
index 47993e08662..f1b353e4529 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -70,24 +70,24 @@ on_current_media_changed(vlc_player_t *player, input_item_t *new_media,
 
     if (new_media != media)
     {
-    if (md)
-    {
-        media_detach_preparsed_event(md);
-        libvlc_media_release(md);
-    }
+        if (md)
+        {
+            media_detach_preparsed_event(md);
+            libvlc_media_release(md);
+        }
 
-    if (new_media)
-    {
-        mp->p_md = libvlc_media_new_from_input_item(mp->p_libvlc_instance,
-                                                    new_media);
-        if (!mp->p_md)
-            /* error already printed by the function call */
-            return;
+        if (new_media)
+        {
+            mp->p_md = libvlc_media_new_from_input_item(mp->p_libvlc_instance,
+                                                        new_media);
+            if (!mp->p_md)
+                /* error already printed by the function call */
+                return;
 
-        media_attach_preparsed_event(mp->p_md);
-    }
-    else
-        mp->p_md = NULL;
+            media_attach_preparsed_event(mp->p_md);
+        }
+        else
+            mp->p_md = NULL;
     }
 
     libvlc_event_t event;
-- 
2.28.0



More information about the vlc-devel mailing list