[vlc-commits] commit: Cosmetics (vout). (Laurent Aimar )

git at videolan.org git at videolan.org
Mon Oct 25 20:41:54 CEST 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri Oct 22 20:54:35 2010 +0200| [d9b001818638b4b072e687aed5ad43d30a42ee48] | committer: Laurent Aimar 

Cosmetics (vout).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d9b001818638b4b072e687aed5ad43d30a42ee48
---

 src/video_output/display.c       |    6 +++---
 src/video_output/video_output.c  |   34 +++++++++++++++++-----------------
 src/video_output/vout_internal.h |    2 +-
 3 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/src/video_output/display.c b/src/video_output/display.c
index 600fedf..6e7e3d5 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -1563,8 +1563,8 @@ void vout_SendDisplayEventMouse(vout_thread_t *vout, const vlc_mouse_t *m)
 {
     vlc_mouse_t tmp1, tmp2;
 
-    /* The check on p_spu is needed as long as ALLOW_DUMMY_VOUT is defined */
-    if (vout->p->p_spu && spu_ProcessMouse( vout->p->p_spu, m, &vout->p->display.vd->source))
+    /* The check on spu is needed as long as ALLOW_DUMMY_VOUT is defined */
+    if (vout->p->spu && spu_ProcessMouse( vout->p->spu, m, &vout->p->display.vd->source))
         return;
 
     vlc_mutex_lock( &vout->p->filter.lock );
@@ -1610,7 +1610,7 @@ static void DummyVoutSendDisplayEventMouse(vout_thread_t *vout, vlc_mouse_t *fal
         vlc_mutex_init(&p.filter.lock);
         p.filter.chain_static = NULL;
         p.filter.chain_interactive = NULL;
-        p.p_spu = NULL;
+        p.spu = NULL;
         vout->p = &p;
     }
     vout_SendDisplayEventMouse(vout, m);
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index ddf4308..e5d11ef 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -131,7 +131,7 @@ static vout_thread_t *VoutCreate(vlc_object_t *object,
     vlc_object_attach(vout, object);
 
     /* Initialize subpicture unit */
-    vout->p->p_spu = spu_Create(vout);
+    vout->p->spu = spu_Create(vout);
 
     /* Take care of some "interface/control" related initialisations */
     vout_IntfInit(vout);
@@ -159,7 +159,7 @@ static vout_thread_t *VoutCreate(vlc_object_t *object,
     /* */
     if (vlc_clone(&vout->p->thread, Thread, vout,
                   VLC_THREAD_PRIORITY_OUTPUT)) {
-        spu_Destroy(vout->p->p_spu);
+        spu_Destroy(vout->p->spu);
         vlc_object_release(vout);
         return NULL;
     }
@@ -174,7 +174,7 @@ static vout_thread_t *VoutCreate(vlc_object_t *object,
 
     vout->p->input = cfg->input;
     if (vout->p->input)
-        spu_Attach(vout->p->p_spu, vout->p->input, true);
+        spu_Attach(vout->p->spu, vout->p->input, true);
 
     return vout;
 }
@@ -193,10 +193,10 @@ vout_thread_t *(vout_Request)(vlc_object_t *object,
     if (vout) {
         if (vout->p->input != cfg->input) {
             if (vout->p->input)
-                spu_Attach(vout->p->p_spu, vout->p->input, false);
+                spu_Attach(vout->p->spu, vout->p->input, false);
             vout->p->input = cfg->input;
             if (vout->p->input)
-                spu_Attach(vout->p->p_spu, vout->p->input, true);
+                spu_Attach(vout->p->spu, vout->p->input, true);
         }
 
         if (cfg->change_fmt) {
@@ -224,7 +224,7 @@ void vout_Close(vout_thread_t *vout)
     assert(vout);
 
     if (vout->p->input)
-        spu_Attach(vout->p->p_spu, vout->p->input, false);
+        spu_Attach(vout->p->spu, vout->p->input, false);
 
     vout_snapshot_End(&vout->p->snapshot);
 
@@ -232,8 +232,8 @@ void vout_Close(vout_thread_t *vout)
     vlc_join(vout->p->thread, NULL);
 
     vlc_mutex_lock(&vout->p->spu_lock);
-    spu_Destroy(vout->p->p_spu);
-    vout->p->p_spu = NULL;
+    spu_Destroy(vout->p->spu);
+    vout->p->spu = NULL;
     vlc_mutex_unlock(&vout->p->spu_lock);
 }
 
@@ -359,8 +359,8 @@ int vout_RegisterSubpictureChannel( vout_thread_t *vout )
     int channel = SPU_DEFAULT_CHANNEL;
 
     vlc_mutex_lock(&vout->p->spu_lock);
-    if (vout->p->p_spu)
-        channel = spu_RegisterChannel(vout->p->p_spu);
+    if (vout->p->spu)
+        channel = spu_RegisterChannel(vout->p->spu);
     vlc_mutex_unlock(&vout->p->spu_lock);
 
     return channel;
@@ -765,7 +765,7 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
     else
         spu_render_time = filtered->date > 1 ? filtered->date : mdate();
 
-    subpicture_t *subpic = spu_SortSubpictures(vout->p->p_spu,
+    subpicture_t *subpic = spu_SortSubpictures(vout->p->spu,
                                                spu_render_time,
                                                do_snapshot);
     /*
@@ -789,7 +789,7 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
         if (render) {
             picture_Copy(render, filtered);
 
-            spu_RenderSubpictures(vout->p->p_spu,
+            spu_RenderSubpictures(vout->p->spu,
                                   render, &vd->source,
                                   subpic, &vd->source, spu_render_time);
         }
@@ -944,12 +944,12 @@ static void ThreadManage(vout_thread_t *vout,
 static void ThreadDisplaySubpicture(vout_thread_t *vout,
                                     subpicture_t *subpicture)
 {
-    spu_DisplaySubpicture(vout->p->p_spu, subpicture);
+    spu_DisplaySubpicture(vout->p->spu, subpicture);
 }
 
 static void ThreadFlushSubpicture(vout_thread_t *vout, int channel)
 {
-    spu_ClearChannel(vout->p->p_spu, channel);
+    spu_ClearChannel(vout->p->spu, channel);
 }
 
 static void ThreadDisplayOsdTitle(vout_thread_t *vout, const char *string)
@@ -1050,11 +1050,11 @@ static void ThreadChangeFilters(vout_thread_t *vout, const char *filters)
 
 static void ThreadChangeSubFilters(vout_thread_t *vout, const char *filters)
 {
-    spu_ChangeFilters(vout->p->p_spu, filters);
+    spu_ChangeFilters(vout->p->spu, filters);
 }
 static void ThreadChangeSubMargin(vout_thread_t *vout, int margin)
 {
-    spu_ChangeMargin(vout->p->p_spu, margin);
+    spu_ChangeMargin(vout->p->spu, margin);
 }
 
 static void ThreadChangePause(vout_thread_t *vout, bool is_paused, mtime_t date)
@@ -1071,7 +1071,7 @@ static void ThreadChangePause(vout_thread_t *vout, bool is_paused, mtime_t date)
         picture_fifo_OffsetDate(vout->p->decoder_fifo, duration);
         if (vout->p->displayed.decoded)
             vout->p->displayed.decoded->date += duration;
-        spu_OffsetSubtitleDate(vout->p->p_spu, duration);
+        spu_OffsetSubtitleDate(vout->p->spu, duration);
 
         ThreadFilterFlush(vout);
     } else {
diff --git a/src/video_output/vout_internal.h b/src/video_output/vout_internal.h
index 0e287df..9e12b02 100644
--- a/src/video_output/vout_internal.h
+++ b/src/video_output/vout_internal.h
@@ -69,7 +69,7 @@ struct vout_thread_sys_t
 
     /* Subpicture unit */
     vlc_mutex_t     spu_lock;
-    spu_t           *p_spu;
+    spu_t           *spu;
 
     /* Video output window */
     struct {



More information about the vlc-commits mailing list