Trying to set the "sdes" property into a GstRtpSession instance, the
command gst-launch-1.0 fails: $ gst-launch-1.0 rtpsession name=r sdes="application/x-rtp-source-sdes,cname=(string)user@host" ... WARNING: erroneous pipeline: could not set property "sdes" in element "r" to "application/x-rtp-source-sdes,cname=user@host" The reason is that at some point, the '@' character is not recognized as a valid one. These cnames work fine: userhost, user_host, user+host. But user@host doesn't work. Driven by this bug report: https://bugzilla.gnome.org/show_bug.cgi?id=779668 it seems that the character '@' is not treated as a valid character in the macro GST_ASCII_IS_STRING: gst/gst_private.h: #define GST_ASCII_IS_STRING(c) (g_ascii_isalnum((c)) || ((c) == '_') || \ ((c) == '-') || ((c) == '+') || ((c) == '/') || ((c) == ':') || \ ((c) == '.')) I don't know if this is the reason that "user@host" is not recognized as a valid string, I don't know the code to be sure that this is the case, but it seems plausible. Does this merit a new bug report? _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Solved thanks to the helpful tips of user <slomo> in IRC #gstreamer
Posting here for the remotely likely case that someone with the same problem arrives here. Wouldn't hurt that this was documented, though. This is a sample minimal working command with the correct syntax: gst-launch-1.0 rtpsession sdes="application/x-rtp-source-sdes,cname=(string)\"user\@host\"" Regards On 29/03/17 15:34, Juan Navarro wrote: > Trying to set the "sdes" property into a GstRtpSession instance, the > command gst-launch-1.0 fails: > > $ gst-launch-1.0 rtpsession name=r > sdes="application/x-rtp-source-sdes,cname=(string)user@host" ... > WARNING: erroneous pipeline: could not set property "sdes" in element > "r" to "application/x-rtp-source-sdes,cname=user@host" > > The reason is that at some point, the '@' character is not recognized > as a valid one. > These cnames work fine: userhost, user_host, user+host. > But user@host doesn't work. > > Driven by this bug report: > https://bugzilla.gnome.org/show_bug.cgi?id=779668 it seems that the > character '@' is not treated as a valid character in the macro > GST_ASCII_IS_STRING: > > gst/gst_private.h: > #define GST_ASCII_IS_STRING(c) (g_ascii_isalnum((c)) || ((c) == '_') || \ > ((c) == '-') || ((c) == '+') || ((c) == '/') || ((c) == ':') || \ > ((c) == '.')) > > I don't know if this is the reason that "user@host" is not recognized > as a valid string, I don't know the code to be sure that this is the > case, but it seems plausible. > > Does this merit a new bug report? _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |