Unable to get GstClock from GstElement

svenyonson steve at svenyonson.com
Fri Feb 13 10:32:43 PST 2015


Thanks Sebastian, I will do this in the future.

Olivier has created a patch that I would like to try (attached to the bug report). I assume this means that I will need to build GStreamer from sources for the ARM/Android platform? 

Are there instructions/scripts for doing this? Hopefully to create a drop in replacement for the gstreamer-1.0-android-arm-debug-1.4.4 SDK that I downloaded earlier? Or would this available from nightly builds?

Thanks for all of your help.

Steve

On Feb 13, 2015, at 1:23 AM, Sebastian Dröge-3 [via GStreamer-devel] <ml-node+s966125n4670718h26 at n4.nabble.com> wrote:

> Hi, 
> 
> there's also a bug report about all this with further information here: 
> https://bugzilla.gnome.org/show_bug.cgi?id=744442
> 
> If you ask your questions in both places at once, make sure to say that 
> in both places to not have people waste their time on already solved 
> problems. 
> 
> On Fr, 2015-02-13 at 09:24 +0100, Edward Hervey wrote:
> 
> > Hi, 
> > 
> >   The clock is chosen and distributed by the pipeline in PAUSED to 
> > PLAYING. 
> > 
> >   In the case of the distributed playback use-cases, you will need to: 
> >   1) grab the clock in PLAYING on the server, and wrap it with the 
> > nettimeprovider 
> >   2) set the net client clock on the clients (you can do that in any 
> > state) 
> > 
> >     Edward 
> > 
> > On Thu, 2015-02-12 at 10:13 -0800, svenyonson wrote: 
> > > I am trying to port the sample python code from noraisin.net (synchronized 
> > > playback across machines) to Android devices. I have the tutorial 5 working, 
> > > and am now trying to integrate the relevant pieces from the python code: 
> > > 
> > >     // 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; 
> > >     } 
> > > 
> > >     GstPipeline* pipeline = GST_PIPELINE_CAST(data->pipeline); 
> > >     GstElement* element = data->pipeline; 
> > > 
> > >     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); 
> > > 
> > >     // Add sync stuff from tutorial 
> > >     GstClock* clock = gst_element_get_clock(data->pipeline); 
> > > 
> > >     GST_DEBUG ("gst_element_get_clock... (GstClock:%p)", clock); 
> > > 
> > > When I run this code, clock is 0x0. 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > -- 
> > > View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Unable-to-get-GstClock-from-GstElement-tp4670705.html
> > > Sent from the GStreamer-devel mailing list archive at Nabble.com. 
> > > _______________________________________________ 
> > > gstreamer-devel mailing list 
> > > [hidden email] 
> > > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> > 
> > 
> > _______________________________________________ 
> > gstreamer-devel mailing list 
> > [hidden email] 
> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> -- 
> Sebastian Dröge, Centricular Ltd · http://www.centricular.com
> 
> _______________________________________________ 
> gstreamer-devel mailing list 
> [hidden email] 
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
>  signature.asc (968 bytes) Download Attachment
> 
> 
> If you reply to this email, your message will be added to the discussion below:
> http://gstreamer-devel.966125.n4.nabble.com/Unable-to-get-GstClock-from-GstElement-tp4670705p4670718.html
> To unsubscribe from Unable to get GstClock from GstElement, click here.
> NAML





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Unable-to-get-GstClock-from-GstElement-tp4670705p4670744.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150213/e2648cb1/attachment.html>


More information about the gstreamer-devel mailing list