On Fri, 2009-11-13 at 15:23 +0000, Kevin DeKorte wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Any progress on converting clutter-gst from using a playbin to using
> playbin2? I've been running into some problems with gstreamer and they
> are recommending I switch to playbin2.
>
> I tried just changing playbin to playbin2 in the clutter-gst code, but I
> didn't get any video.
Using playin2 is really a one liner, seems to work here. Against master:
diff --git a/clutter-gst/clutter-gst-video-texture.c
b/clutter-gst/clutter-gst-v
index 39790a9..a9574b8 100644
--- a/clutter-gst/clutter-gst-video-texture.c
+++ b/clutter-gst/clutter-gst-video-texture.c
@@ -639,10 +639,10 @@ lay_pipeline (ClutterGstVideoTexture
*video_texture)
GstElement *audio_sink = NULL;
GstElement *video_sink = NULL;
- priv->pipeline = gst_element_factory_make ("playbin", "pipeline");
+ priv->pipeline = gst_element_factory_make ("playbin2", "pipeline");
if (!priv->pipeline)
{
- g_critical ("Unable to create playbin element");
+ g_critical ("Unable to create playbin2 element");
return FALSE;
}
--
Damien
--
To unsubscribe send a mail to [email protected]