so it's no big thing.
authorWim Taymans <wim.taymans@gmail.com>
Thu, 27 Feb 2003 18:56:30 +0000 (18:56 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Thu, 27 Feb 2003 18:56:30 +0000 (18:56 +0000)
Original commit message from CVS:
- API change in padprobes, nobody uses this yet (or could), so it's no big
thing.

gst/gstpad.c
gst/gstprobe.c
gst/gstprobe.h

index cc37b0d..c04c524 100644 (file)
@@ -2207,7 +2207,7 @@ gst_pad_push (GstPad *pad, GstBuffer *buf)
 
   g_return_if_fail (GST_PAD_DIRECTION (pad) == GST_PAD_SRC);
 
-  if (!gst_probe_dispatcher_dispatch (&(GST_REAL_PAD (pad)->probedisp), GST_DATA (buf)))
+  if (!gst_probe_dispatcher_dispatch (&(GST_REAL_PAD (pad)->probedisp), (GstData **) &buf))
     return;
 
   peer = GST_RPAD_PEER (pad);
@@ -2229,7 +2229,7 @@ gst_pad_push (GstPad *pad, GstBuffer *buf)
                   "calling chainhandler &%s of peer pad %s:%s",
                    GST_DEBUG_FUNCPTR_NAME (peer->chainhandler), 
                   GST_DEBUG_PAD_NAME (GST_PAD (peer)));
-        if (!gst_probe_dispatcher_dispatch (&peer->probedisp, GST_DATA (buf)))
+        if (!gst_probe_dispatcher_dispatch (&peer->probedisp, (GstData **) &buf))
           return;
 
         (peer->chainhandler) (GST_PAD_CAST (peer), buf);
@@ -2289,7 +2289,7 @@ restart:
       buf = (peer->gethandler) (GST_PAD_CAST (peer));
 
       if (buf) {
-        if (!gst_probe_dispatcher_dispatch (&peer->probedisp, GST_DATA (buf)))
+        if (!gst_probe_dispatcher_dispatch (&peer->probedisp, (GstData **) &buf))
           goto restart;
 
         if (!GST_IS_EVENT (buf) && !active) {
index 9537cb9..217a1fa 100644 (file)
@@ -76,7 +76,7 @@ gst_probe_destroy (GstProbe *probe)
  * Returns: the result of the probe callback function.
  */
 gboolean
-gst_probe_perform (GstProbe *probe, GstData *data)
+gst_probe_perform (GstProbe *probe, GstData **data)
 {
   gboolean res = TRUE;
 
@@ -197,7 +197,7 @@ gst_probe_dispatcher_remove_probe (GstProbeDispatcher *disp, GstProbe *probe)
  * Returns: TRUE if all callbacks returned TRUE.
  */
 gboolean       
-gst_probe_dispatcher_dispatch (GstProbeDispatcher *disp, GstData *data)
+gst_probe_dispatcher_dispatch (GstProbeDispatcher *disp, GstData **data)
 {
   GSList *walk;
   gboolean res = TRUE;
index 7c5696b..1be6c26 100644 (file)
@@ -33,7 +33,7 @@ typedef struct _GstProbe GstProbe;
 
 /* the callback should return FALSE if the data should be discarded */
 typedef gboolean               (*GstProbeCallback)             (GstProbe *probe, 
-                                                                GstData *data, 
+                                                                GstData **data, 
                                                                 gpointer user_data);
 
 struct _GstProbe {
@@ -49,7 +49,7 @@ GstProbe*             gst_probe_new                   (gboolean single_shot,
                                                         gpointer user_data);
 void                   gst_probe_destroy               (GstProbe *probe);
 
-gboolean               gst_probe_perform               (GstProbe *probe, GstData *data);
+gboolean               gst_probe_perform               (GstProbe *probe, GstData **data);
 
 typedef struct _GstProbeDispatcher GstProbeDispatcher;
 
@@ -67,7 +67,7 @@ void                  gst_probe_dispatcher_set_active         (GstProbeDispatcher *disp, gboolean acti
 void                   gst_probe_dispatcher_add_probe          (GstProbeDispatcher *disp, GstProbe *probe);
 void                   gst_probe_dispatcher_remove_probe       (GstProbeDispatcher *disp, GstProbe *probe);
 
-gboolean               gst_probe_dispatcher_dispatch           (GstProbeDispatcher *disp, GstData *data);
+gboolean               gst_probe_dispatcher_dispatch           (GstProbeDispatcher *disp, GstData **data);
 
 G_END_DECLS