GNOME Bugzilla – Bug 653549
Need for a "media-constructed" signal from GstRTSPMediaFactory
Last modified: 2018-06-29 22:21:54 UTC
Created attachment 190831 [details] [review] patch I'm building a rtsp server application in which I'm using appsrc elements in the stream pipeline. I didn't find an easy way to retrieve a pointer to the appsrc elements after their creation. The attached patch implements a "media-constructed" signal which gives me the newly constructed GstRTSPMedia and its pipeline.
Seems reasonable. You can also override the get_element method and do what you need to there. However, having a specific signal is probably more discoverable. Could you start attaching patches created using 'git format-patch'? Patches in that form are much easier to apply. (Also. Dude. No structure padding. wtf. I doubt it matters, since it is unlikely anyone is subclassing GstRTSPMediaFactory.)
Created attachment 190995 [details] [review] patch made using git-format-patch
> (Also. Dude. No structure padding. wtf. I doubt it matters, since it is unlikely anyone is subclassing GstRTSPMediaFactory.) I don't understand this comment. Which padding ?
Will this patch be applied as is, or does it need some more work ?
committed Thanks! commit 5dc9e76125466be7990187b78000b1df32704312 Author: Emmanuel Pacaud <emmanuel@gnome.org> Date: Thu Jun 30 10:13:59 2011 +0200 media-factory: add a "media-constructed" signal to GstRTSPMediaFactory For example, it can be used to retrieve source elements like appsrc, in a more convenient way than subclassing get_element.