display: inline one trivial function
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 2 Jan 2019 13:10:04 +0000 (15:10 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 12 Jan 2019 14:08:49 +0000 (16:08 +0200)
src/video_output/display.c

index 805804d..9b2d9fe 100644 (file)
@@ -709,11 +709,11 @@ void vout_SetDisplayViewpoint(vout_display_t *vd,
     }
 }
 
-static vout_display_t *DisplayNew(vlc_object_t *parent,
-                                  const video_format_t *source,
-                                  const vout_display_cfg_t *cfg,
-                                  const char *module,
-                                  const vout_display_owner_t *owner)
+vout_display_t *vout_display_New(vlc_object_t *parent,
+                                 const video_format_t *source,
+                                 const vout_display_cfg_t *cfg,
+                                 const char *module,
+                                 const vout_display_owner_t *owner)
 {
     vout_display_priv_t *osys = vlc_custom_create(parent, sizeof (*osys),
                                                   "vout display");
@@ -810,12 +810,3 @@ void vout_display_Delete(vout_display_t *vd)
     video_format_Clean(&vd->fmt);
     vlc_object_release(vd);
 }
-
-vout_display_t *vout_display_New(vlc_object_t *parent,
-                                 const video_format_t *source,
-                                 const vout_display_cfg_t *cfg,
-                                 const char *module,
-                                 const vout_display_owner_t *owner)
-{
-    return DisplayNew(parent, source, cfg, module, owner);
-}