[cogl/wip/cogl-gst] basic-video-player: Fix the user data pointer for the frame cb



commit 806f3a5f9a7d53b9b1d43fbfb74f643c021356a3
Author: Neil Roberts <neil linux intel com>
Date:   Fri Mar 1 13:02:31 2013 +0000

    basic-video-player: Fix the user data pointer for the frame cb
    
    The frame callback was passing a pointer to the pointer to the data
    instead of a pointer to the data so it wouldn't do the right thing if
    it was used.

 examples/cogl-basic-video-player.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/examples/cogl-basic-video-player.c b/examples/cogl-basic-video-player.c
index 7b5be41..85897e1 100644
--- a/examples/cogl-basic-video-player.c
+++ b/examples/cogl-basic-video-player.c
@@ -121,8 +121,8 @@ _set_up_pipeline (gpointer instance,
                                        COGL_PIPELINE_FILTER_LINEAR);
     }
 
-  cogl_onscreen_add_frame_callback(COGL_ONSCREEN (data->fb), _frame_callback,
-                                   &data, NULL);
+  cogl_onscreen_add_frame_callback (COGL_ONSCREEN (data->fb), _frame_callback,
+                                    data, NULL);
 
   /*
      The cogl-gst-new-frame signal is emitted when the cogl-gst sink has


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]