-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've been having some great luck with clutter-gst and clutter-gtk and in
fact created a new project with it

http://code.google.com/p/fosfor/

Looks something like this:
http://1.bp.blogspot.com/_8vVUG9EUYMg/Srk-JPdRiNI/AAAAAAAAEuw/BUQcZH8-dQk/s1600-h/Screenshot-.-MediaWall.png

but I've ran into a couple of issues and I wonder if you can point me in
the right direction.

I started adding DVD support to my application and I ran into a wall
when trying to do some callbacks for DVD menus.

To do DVD menus I need to first hook the "element-added" function of the
video-sink, so I do this...

element =
clutter_gst_video_texture_get_playbin(CLUTTER_GST_VIDEO_TEXTURE(media));
        g_object_get(G_OBJECT(element),"video-sink",&video_sink, NULL);

        if (video_sink != NULL) {
                if (GST_IS_BIN(video_sink)) {
                        printf("hooking element added\n");
                        g_signal_connect (video_sink, "element-added", 
G_CALLBACK
(video_sink_element_added), NULL);
                } else {
                        printf("video_sink %s is a not a GST_BIN object\n",
GST_ELEMENT_NAME(video_sink));
                }
    }

When I run this code I end up with this message

video_sink cluttergstvideosink0 is a not a GST_BIN object

The reason I need to make this hook is that I need to use

gst_bin_get_by_interface (GST_BIN(video_sink), GST_TYPE_NAVIGATION);

To determine if the media contains navigation. When I try to force the
gst_bin_get_by_interface I get this exception

GST Object Name is cluttergstvideosink0

(src/fosfor:29444): GLib-GObject-WARNING **: invalid cast from
`ClutterGstVideoSink' to `GstBin'

(src/fosfor:29444): GStreamer-CRITICAL **: gst_bin_get_by_interface:
assertion `GST_IS_BIN (bin)' failed

So is this an issue with clutter-gst or am I just doing this wrong, and
there is another way to do this? If there is another way, can you please
point it out. Perhaps a method needs to be added to get the GstBaseSink
from the ClutterGstVideoSink?

Thanks,

Kevin

- -- 
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkrd3EAACgkQ6w2kMH0L1dFNagCglfHCYjT+6/e9hfVN7Nu67JG2
P04AnRlFqIk3Rcluz+v1dSrFRKWfuGYd
=Rh3P
-----END PGP SIGNATURE-----
-- 
To unsubscribe send a mail to [email protected]

Reply via email to