Deconstructing a pipeline

Mandar Joshi emailmandar at gmail.com
Thu Nov 17 13:16:10 UTC 2016


>   if (!(gst_element_link(data.playbin, data.playsink))) {
>     g_printerr ("Unable to link the source and the sink.\n");
>     gst_object_unref (data.pipeline);
>     return -1;
>   }
>
>   gst_element_link_many (data.playbin, data.playsink, NULL);
>   link_ok = gst_element_link_filtered (data.playbin, data.playsink,
> video_caps);
>   gst_caps_unref(video_caps);
>
>   if (!link_ok) {
>     g_warning("Failed to link playbin and playsink with caps");
>     }
>

You are trying to link the same elements multiple times. Try linking
just once with caps.
Are you sure that your camera supports resolution 800x480. Shouldn't
this be 800x600 or 640x480 ?
I had to add a videoconvert between playbin and playsink to get your
code to work with my USB camera (Logitech C310)
as it doesn't support.BGR.
Hope this helps.

Regards
Mandar Joshi


More information about the gstreamer-devel mailing list