Hi all,
In a normal pipeline I intercept bus message with this 3 lines: GstElement *pipeline = gst_pipeline_new("gst-pipeline"); GstBus *bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline)); guint bus_watch_id = gst_bus_add_watch(bus, gst_handle_message, data); where "gst_handle_message" is a function that manage all message from bus. In gst-rtsp-server how I can do the same thing? Thanks in advance Damiano -- Damiano PINARELLO Embedded Software Developer Office Phone: +(39) 031 653679 Ext. 4679 FAX phone: +(39) 031 653283 Email: [hidden email] Street address: Via L. Manara 4, 22036 Erba (CO), Italy WebSite: www.bticino.it ------------------------------------------------------------------------------ Please consider your environmental responsibility before printing this Email ------------------------------------------------------------------------------ This message and any attachments are confidential and they also are legally privileged in accordance with the NDA. If you have received this message in error, please notify us and remove it from your system. ------------------------------------------------------------------------------ Ce message, ainsi que tous les fichiers joints à ce message, peuvent contenir des informations sensibles et/ ou confidentielles ne devant pas être divulguées. Si vous n'êtes pas le destinataire de ce message (ou que vous recevez ce message par erreur), nous vous remercions de le notifier immédiatement à son expéditeur, et de détruire ce message. Toute copie, divulgation, modification, utilisation ou diffusion, non autorisée, directe ou indirecte, de tout ou partie de ce message, est strictement interdite. This e-mail, and any document attached hereby, may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized, direct or indirect, copying, disclosure, distribution or other use of the material or parts thereof is strictly forbidden. _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Struggling with the same issue, did you found out how to do this?
|
In reply to this post by Damiano Pinarello
In rtsp-media.c, there is "bus_message" to do that, which calls klass->handle_message.
The default is default_handle_message, you can create vmethod for your own. |
Note that this vmethod does _not_ run in the application thread, so you
should use proper thread synchronization. On 2016-11-04 06:47, Hyunjun Ko wrote: > In rtsp-media.c, there is "bus_message" to do that, which calls > klass->handle_message. > The default is default_handle_message, you can create vmethod for your own. > > > > > > > -- > View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gst-rtsp-server-and-message-from-pipeline-bus-tp4659943p4680436.html > Sent from the GStreamer-devel mailing list archive at Nabble.com. > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |