RTSP Server from a manually created and linked pipeline

Dmitry Valento va.dimon at tut.by
Wed Nov 2 12:36:31 UTC 2016


At first, make sure that your pipeline is a really top-level element.

It's better to get Bus after constructing of full RTSP pipeline. You may 
use signal "media-constructed" for this purpose:

g_signal_connect(factory, "media-constructed", 
G_CALLBACK(store_media_pipeline), (gpointer)NULL);

At second, try to pop Bus messages manually in main loop (without signal 
connection), like:
gst_bus_timed_pop_filtered(bus, 1000000, GST_MESSAGE_ANY);

On 11/02/2016 01:51 PM, bomba wrote:
> I ended up overriding create_element().
>
> Not sure about how to get bus messages at this point.
>
> +         si.bus = gst_pipeline_get_bus (GST_PIPELINE (si.pipeline));
> +         if (!si.bus)
> +                 g_printerr ("Could not get bus\n");
> +
> +         gst_bus_add_signal_watch (si.bus);
> +
> +         /*      Connect to bus messages */
> +         g_signal_connect (si.bus, "message", G_CALLBACK (bus_message),
> &si);
>
> Does not produce any effect.
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/RTSP-Server-from-a-manually-created-and-linked-pipeline-tp4680305p4680395.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list