so it's no big thing.

Original commit message from CVS:
- API change in padprobes, nobody uses this yet (or could), so it's no big
thing.
This commit is contained in:
Wim Taymans 2003-02-27 18:56:30 +00:00
parent 2b3c56c4d1
commit ecb6dd6c6a
3 changed files with 8 additions and 8 deletions

View 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) {

View 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;

View 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