#include <gst/gst.h>

int main (int argc, char **argv) {
        GstElement *playbin;
        char *uri;

        gst_init (&argc, &argv);

        playbin = gst_element_factory_make ("playbin2", NULL);

        g_object_set (playbin, "uri", "file:///some/file", NULL);

        g_object_get (playbin, "uri", &uri, NULL);
        g_print ("URI was set to '%s'\n", uri);
        g_free (uri);

        return 0;
}
