[gst-devel] !GST_IS_OBJECT Problem

Erwan Masson masson.erwan1 at gmail.com
Thu Apr 12 14:51:03 CEST 2007

Hello again,

I got a big problem: The callback for have-data and handoffs did not work.
Here is my code for the have-data cb:

> static gboolean cb_have_data_video (GstPad *pad, GstMiniObject *mini_obj,
> gpointer user_data)
> {
>          video_frames++;
>          if (video_frames == 0){
>          }
>          if(!mini_obj){
>          }else{
>              if (mini_obj==NULL){
>              }else{
>                  if (video_frames == 25){
>                      g_print("\n  have data video\n");
>                      if (!GST_IS_OBJECT (mini_obj))
>                          g_print("mini_obj is not an object");
>                      else
>                          g_print(" name object miniobject %s
> |",gst_object_get_name(mini_obj));
>                      g_print("name object pad %s ",
> gst_object_get_name(pad));
>                  }
>              }
>          }
>    return TRUE;
> }

I connect to a pad my cb :
  gst_pad_add_buffer_probe (pad, G_CALLBACK (cb_have_data_video), NULL);

And I always get on output "mini_obj is not an object".
I got the same error with my handoff signal, the GstBuffer * is not a

Why this is bugged?
Thanks for your help,

Erwan Masson

---------- Forwarded message ----------
From: Erwan Masson <masson.erwan1 at gmail.com>
Date: 6 avr. 2007 16:33
Subject: Taking a frame
To: gstreamer-devel at lists.sourceforge.net

 I am trying Gstreamer since a few weeks, and I would like to grab some info
on raw video frames.

First I try to use pngenc to grab frame, but I only be able to grab the
first frame, and with a notify-caps signal, I took  some info(width, height,

After a few search, I find typefind Element, which help me to find some
info, with have-type signal.

But now, I am not able to retrieve any frame. How I do to retrieve frame

Thanks for your help.

Erwan Masson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20070412/d65064db/attachment.htm>

More information about the gstreamer-devel mailing list