[Bug 744442] New: Unable to obtain GstClock from GstElement (Android)

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Feb 12 14:41:39 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=744442

            Bug ID: 744442
           Summary: Unable to obtain GstClock from GstElement (Android)
    Classification: Platform
           Product: GStreamer
           Version: 1.4.4
                OS: other
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: steve at svenyonson.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Using simple example extracted from android-tutorial-5, adding a call to
gst_get_element_clock() returns 0x0.

static void *test_player(void *userdata) {

    CustomData *data = (CustomData *)userdata;
    GError *error = NULL;

    GST_DEBUG ("Creating test pipeline");

    // Create our own GLib Main Context and make it the default one
    data->context = g_main_context_new ();
    g_main_context_push_thread_default(data->context);

    // Build pipeline
    data->pipeline = gst_parse_launch("playbin", &error);
    if (error) {
        gchar *message = g_strdup_printf("Unable to build pipeline: %s",
error->message);
        g_clear_error (&error);
        set_ui_message(message, data);
        g_free (message);
        return NULL;
    }

    gchar* uri = "http://docs.gstreamer.com/media/sintel_trailer-368p.ogv";
    g_object_set(data->pipeline, "uri", uri, NULL);

    // Set the pipeline to READY, so it can already accept a window handle, if
we have one
    data->target_state = GST_STATE_READY;
    gst_element_set_state(data->pipeline, GST_STATE_READY);

    // Get clock for netprovider
    GstClock* clock = gst_element_get_clock(data->pipeline);
    GST_DEBUG ("gst_element_get_clock... (GstClock:%p)", clock); 

    // clock == 0x0



.
.
.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list