mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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:
parent
2b3c56c4d1
commit
ecb6dd6c6a
3 changed files with 8 additions and 8 deletions
|
@ -2207,7 +2207,7 @@ gst_pad_push (GstPad *pad, GstBuffer *buf)
|
||||||
|
|
||||||
g_return_if_fail (GST_PAD_DIRECTION (pad) == GST_PAD_SRC);
|
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;
|
return;
|
||||||
|
|
||||||
peer = GST_RPAD_PEER (pad);
|
peer = GST_RPAD_PEER (pad);
|
||||||
|
@ -2229,7 +2229,7 @@ gst_pad_push (GstPad *pad, GstBuffer *buf)
|
||||||
"calling chainhandler &%s of peer pad %s:%s",
|
"calling chainhandler &%s of peer pad %s:%s",
|
||||||
GST_DEBUG_FUNCPTR_NAME (peer->chainhandler),
|
GST_DEBUG_FUNCPTR_NAME (peer->chainhandler),
|
||||||
GST_DEBUG_PAD_NAME (GST_PAD (peer)));
|
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;
|
return;
|
||||||
|
|
||||||
(peer->chainhandler) (GST_PAD_CAST (peer), buf);
|
(peer->chainhandler) (GST_PAD_CAST (peer), buf);
|
||||||
|
@ -2289,7 +2289,7 @@ restart:
|
||||||
buf = (peer->gethandler) (GST_PAD_CAST (peer));
|
buf = (peer->gethandler) (GST_PAD_CAST (peer));
|
||||||
|
|
||||||
if (buf) {
|
if (buf) {
|
||||||
if (!gst_probe_dispatcher_dispatch (&peer->probedisp, GST_DATA (buf)))
|
if (!gst_probe_dispatcher_dispatch (&peer->probedisp, (GstData **) &buf))
|
||||||
goto restart;
|
goto restart;
|
||||||
|
|
||||||
if (!GST_IS_EVENT (buf) && !active) {
|
if (!GST_IS_EVENT (buf) && !active) {
|
||||||
|
|
|
@ -76,7 +76,7 @@ gst_probe_destroy (GstProbe *probe)
|
||||||
* Returns: the result of the probe callback function.
|
* Returns: the result of the probe callback function.
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
gst_probe_perform (GstProbe *probe, GstData *data)
|
gst_probe_perform (GstProbe *probe, GstData **data)
|
||||||
{
|
{
|
||||||
gboolean res = TRUE;
|
gboolean res = TRUE;
|
||||||
|
|
||||||
|
@ -197,7 +197,7 @@ gst_probe_dispatcher_remove_probe (GstProbeDispatcher *disp, GstProbe *probe)
|
||||||
* Returns: TRUE if all callbacks returned TRUE.
|
* Returns: TRUE if all callbacks returned TRUE.
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
gst_probe_dispatcher_dispatch (GstProbeDispatcher *disp, GstData *data)
|
gst_probe_dispatcher_dispatch (GstProbeDispatcher *disp, GstData **data)
|
||||||
{
|
{
|
||||||
GSList *walk;
|
GSList *walk;
|
||||||
gboolean res = TRUE;
|
gboolean res = TRUE;
|
||||||
|
|
|
@ -33,7 +33,7 @@ typedef struct _GstProbe GstProbe;
|
||||||
|
|
||||||
/* the callback should return FALSE if the data should be discarded */
|
/* the callback should return FALSE if the data should be discarded */
|
||||||
typedef gboolean (*GstProbeCallback) (GstProbe *probe,
|
typedef gboolean (*GstProbeCallback) (GstProbe *probe,
|
||||||
GstData *data,
|
GstData **data,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
|
||||||
struct _GstProbe {
|
struct _GstProbe {
|
||||||
|
@ -49,7 +49,7 @@ GstProbe* gst_probe_new (gboolean single_shot,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
void gst_probe_destroy (GstProbe *probe);
|
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;
|
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_add_probe (GstProbeDispatcher *disp, GstProbe *probe);
|
||||||
void gst_probe_dispatcher_remove_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
|
G_END_DECLS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue