summaryrefslogtreecommitdiff
path: root/gst-libs/gst/rtsp/gstrtspmessage.c
AgeCommit message (Collapse)AuthorFilesLines
2021-06-02Use g_memdup2() where available and add fallback for older GLib versionsTim-Philipp Müller1-1/+1
g_memdup() is deprecated since GLib 2.68 and we want to avoid deprecation warnings with recent versions of GLib. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1171>
2019-08-30Pass the code through codespellThibault Saunier1-1/+1
2019-01-29rtsp-message: Add support for storing GstBuffers directly as body payload of ↵Sebastian Dröge1-16/+181
messages This makes it unnecessary for callers to first merge together all memories, and it allows API like GstRTSPConnection to write them out without first copying all memories together or using writev()-style API to write multiple memories out in one go. Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/370
2018-08-13gst-libs: include config.h in all source filesTim-Philipp Müller1-0/+3
This will be needed later when we get our export define from config.h
2018-04-23rtsp: fix some GIR annotationsMark Nauwelaerts1-5/+6
Mostly related to out and array parameters.
2017-12-06rtsp: Register GstRTSPMessage as a boxed typeMatt Staples1-0/+91
Registering GstRTSPMessage as a boxed type allows it to be conveniently used as an argument to signals, a-la GstSDPMessage, and general usage from bindings. https://bugzilla.gnome.org/show_bug.cgi?id=762884
2017-10-03Use proper GtkDoc notation for NULL/FALSE/TRUEReynaldo H. Verdejo Pinochet1-7/+7
2017-06-20libs: Export boxed type copy/free functions for the remaining typesSebastian Dröge1-2/+2
2017-03-10docs: Convert gtkdoc comments to markdownThibault Saunier1-2/+3
Modernizing the documentation, making it simpler to read an modify and allowing us to possibly switch to hotdoc in the future.
2016-12-13rtsp: add boxed types for new authentication credential APITim-Philipp Müller1-18/+83
To make the structs usable in bindings, and fix gstrtspmessage.c:1188: Warning: GstRtsp: gst_rtsp_message_parse_auth_credentials: return value: Invalid non-constant return of bare structure or union; register as boxed type or (skip) https://bugzilla.gnome.org/show_bug.cgi?id=774416
2016-11-28rtsp: Don't leak authorization stringEdward Hervey1-0/+2
2016-11-21rtsp: Add gst_rtsp_message_parse_auth_credentials() to parse authentication ↵Sebastian Dröge1-0/+217
credentials https://bugzilla.gnome.org/show_bug.cgi?id=774416
2015-11-17Remove unnecessary NULL checks before g_free()Reynaldo H. Verdejo Pinochet1-2/+1
g_free() is NULL-safe
2015-02-09rtspmessage: map headers we know that are added by string to their enumTim-Philipp Müller1-0/+6
That way we can look them up by their field enum later as well.
2015-02-09rtspmessage: add API to add and get custom headersTim-Philipp Müller1-3/+183
Add API to add and get custom headers that are not covered by our header fields enum. This is backwards compatible in that it will also work for our defined fields, so if we ever add a new header field to the enum, get_header_by_name() for the same header string will still work. API: gst_rtsp_message_add_header_by_name() API: gst_rtsp_message_take_header_by_name() API: gst_rtsp_message_remove_header_by_name() API: gst_rtsp_message_get_header_by_name()
2014-04-26docs: remove outdated and pointless 'Last reviewed' lines from docsTim-Philipp Müller1-2/+0
They are very confusing for people, and more often than not also just not very accurate. Seeing 'last reviewed: 2005' in your docs is not very confidence-inspiring. Let's just remove those comments.
2012-12-10rtspmessage: Add several missing g-i annotationsSebastian Rasmussen1-9/+9
https://bugzilla.gnome.org/show_bug.cgi?id=689873
2012-11-09rtsp: fix g-i annotation for gst_rtsp_message_set_body(), take_body() and ↵Ognyan Tonchev1-3/+3
take_header() https://bugzilla.gnome.org/show_bug.cgi?id=687620
2012-11-05rtsp: fix GstRTSPMessage g-i annotations for out parametersOgnyan Tonchev1-16/+16
https://bugzilla.gnome.org/show_bug.cgi?id=687620
2012-11-03Fix FSF addressTim-Philipp Müller1-2/+2
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-07-13libs: Remove "Since" markers and minor doc fixupsEdward Hervey1-2/+0
2010-05-06docs: fix wrong doc markupStefan Kost1-4/+0
2009-08-24rtsp: Added support for HTTP messagesPeter Kjellerstedt1-22/+59
2009-06-09rtsp: Avoid a compiler warning.Peter Kjellerstedt1-1/+1
2009-03-31rtsp: clear the entire builder structureTim-Philipp Müller1-1/+1
And use structure instead of variable with sizeof when clearing the rtsp message structure, for clarity.
2009-03-31docs: fix typo in gst_rtsp_message_unset() API docsTim-Philipp Müller1-1/+1
2009-03-31Revert "rtsp: reset whole message (was sizeof pointer instead of sizeof type)"Wim Taymans1-1/+1
This reverts commit 79de0b8d67df6fbbe79455adc2e06858295f5c03.
2009-03-31rtsp: reset whole message (was sizeof pointer instead of sizeof type)Stefan Kost1-1/+1
2009-03-11rtsp: fix g_return conditionWim Taymans1-1/+1
when parsing a data message, we require a data message.
2009-03-11rtsp: free the right string.Wim Taymans1-1/+1
Free the key value before we remove the header item from the array. The item we retrieved from the array is only valid until we remove it from the array.
2009-03-09rtsp: use gstreamer dump memWim Taymans1-34/+4
--
2009-02-20Improve key/value parsingWim Taymans1-10/+18
Improve header field parsing by keeping a ref to the key/value instead of copying it into a local variable.
2009-02-10gstrtspmessage: Minor documentation correction.Peter Kjellerstedt1-8/+8
Corrected documentation about what needs to be freed after calling gst_rtsp_message_new(), gst_rtsp_message_new_request(), gst_rtsp_message_new_response() and gst_rtsp_message_new_data().
2009-02-02Fix string leak in rtspmessageWim Taymans1-0/+1
when we remove a header field from a message we must free the value associated with the key to avoid a memory leak.
2009-01-29Add new RTSP message method to set headerWim Taymans1-7/+27
Add gst_rtsp_message_take_header() that takes ownership of the passed header value. This allows us to avoid an allocations and memory copy in some situations. API: GstRTSPMessage::gst_rtsp_message_take_header()
2008-09-23gst-libs/gst/rtsp/gstrtspmessage.c: Fix the g_return_val_if_fail() statements.Wim Taymans1-2/+2
Original commit message from CVS: * gst-libs/gst/rtsp/gstrtspmessage.c: (gst_rtsp_message_parse_request), (gst_rtsp_message_parse_response): Fix the g_return_val_if_fail() statements.
2008-02-07gst-libs/gst/rtsp/gstrtspmessage.c: Fix compiler warning.Wim Taymans1-1/+1
Original commit message from CVS: * gst-libs/gst/rtsp/gstrtspmessage.c: (gst_rtsp_message_unset): Fix compiler warning.
2007-12-16gst-libs/gst/: Turn a few g_assert_not_reached() into ↵Tim-Philipp Müller1-2/+1
g_return_val_if_reached() to avoid compiler warnings (#503930). Original commit message from CVS: * gst-libs/gst/cdda/gstcddabasesrc.c: (gst_cdda_base_src_do_seek), (gst_cdda_base_src_handle_track_seek), (gst_cdda_base_src_create): * gst-libs/gst/pbutils/install-plugins.c: (gst_install_plugins_spawn_child), (gst_install_plugins_supported): * gst-libs/gst/pbutils/missing-plugins.c: (gst_missing_plugin_message_get_installer_detail), (gst_missing_encoder_installer_detail_new): * gst-libs/gst/rtsp/gstrtspconnection.c: (gst_rtsp_connection_send): * gst-libs/gst/rtsp/gstrtspmessage.c: (gst_rtsp_message_unset): Turn a few g_assert_not_reached() into g_return_val_if_reached() to avoid compiler warnings (#503930).
2007-11-16gst-libs/gst/rtsp/gstrtspmessage.c: Fix leaking headers. Fixes #496761.Tommi Myöhänen1-2/+9
Original commit message from CVS: Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com> * gst-libs/gst/rtsp/gstrtspmessage.c: (gst_rtsp_message_unset): Fix leaking headers. Fixes #496761.
2007-09-17Fix a bunch of compile warnings shown with Forte.Jan Schmidt1-1/+1
Original commit message from CVS: * ext/pango/gsttextoverlay.c: (gst_text_overlay_init), (gst_text_overlay_set_property): * ext/vorbis/vorbisdec.c: (vorbis_handle_data_packet): * gst-libs/gst/audio/gstbaseaudiosink.c: (gst_base_audio_sink_render): * gst-libs/gst/rtp/gstrtcpbuffer.c: (gst_rtcp_ntp_to_unix), (gst_rtcp_unix_to_ntp): * gst-libs/gst/rtsp/gstrtspmessage.c: (gst_rtsp_message_get_type): * gst/playback/gstqueue2.c: * tests/examples/seek/seek.c: (set_scale): Fix a bunch of compile warnings shown with Forte. * gst/audiorate/gstaudiorate.c: Always pull in config.h before including any system headers.
2007-07-25Fix some more RTSP docs.Wim Taymans1-2/+335
Original commit message from CVS: * docs/libs/gst-plugins-base-libs-sections.txt: * gst-libs/gst/rtsp/gstrtspdefs.h: * gst-libs/gst/rtsp/gstrtspmessage.c: (key_value_foreach), (gst_rtsp_message_get_type), (gst_rtsp_message_parse_request), (gst_rtsp_message_init_response), (gst_rtsp_message_parse_response), (gst_rtsp_message_new_data), (gst_rtsp_message_parse_data), (gst_rtsp_message_add_header), (gst_rtsp_message_remove_header), (gst_rtsp_message_get_header), (gst_rtsp_message_append_headers), (gst_rtsp_message_set_body), (gst_rtsp_message_get_body), (dump_key_value): * gst-libs/gst/rtsp/gstrtspmessage.h: * gst-libs/gst/rtsp/gstrtsprange.c: (parse_npt_time), (parse_npt_range), (parse_clock_range), (parse_smpte_range), (gst_rtsp_range_parse): * gst-libs/gst/rtsp/gstrtsprange.h: * gst-libs/gst/rtsp/gstrtsptransport.c: * gst-libs/gst/rtsp/gstrtspurl.c: Fix some more RTSP docs. Add some missing methods for dealing with messages.
2007-07-24Move SDP and RTSP from helper objects in -good to a reusable library.Wim Taymans1-0/+471
Original commit message from CVS: * configure.ac: * gst-libs/gst/Makefile.am: * gst-libs/gst/rtsp/Makefile.am: * gst-libs/gst/rtsp/gstrtspbase64.c: (gst_rtsp_base64_encode): * gst-libs/gst/rtsp/gstrtspbase64.h: * gst-libs/gst/rtsp/gstrtspconnection.c: (inet_aton), (gst_rtsp_connection_create), (gst_rtsp_connection_connect), (add_auth_header), (add_date_header), (gst_rtsp_connection_write), (gst_rtsp_connection_send), (read_line), (read_string), (read_key), (parse_response_status), (parse_request_line), (parse_line), (gst_rtsp_connection_read), (read_body), (gst_rtsp_connection_receive), (gst_rtsp_connection_close), (gst_rtsp_connection_free), (gst_rtsp_connection_next_timeout), (gst_rtsp_connection_reset_timeout), (gst_rtsp_connection_flush), (gst_rtsp_connection_set_auth): * gst-libs/gst/rtsp/gstrtspconnection.h: * gst-libs/gst/rtsp/gstrtspdefs.c: (rtsp_init_status), (gst_rtsp_strresult), (gst_rtsp_method_as_text), (gst_rtsp_version_as_text), (gst_rtsp_header_as_text), (gst_rtsp_status_as_text), (gst_rtsp_find_header_field), (gst_rtsp_find_method): * gst-libs/gst/rtsp/gstrtspdefs.h: * gst-libs/gst/rtsp/gstrtspmessage.c: (key_value_foreach), (gst_rtsp_message_new), (gst_rtsp_message_init), (gst_rtsp_message_new_request), (gst_rtsp_message_init_request), (gst_rtsp_message_new_response), (gst_rtsp_message_init_response), (gst_rtsp_message_init_data), (gst_rtsp_message_unset), (gst_rtsp_message_free), (gst_rtsp_message_add_header), (gst_rtsp_message_remove_header), (gst_rtsp_message_get_header), (gst_rtsp_message_append_headers), (gst_rtsp_message_set_body), (gst_rtsp_message_take_body), (gst_rtsp_message_get_body), (gst_rtsp_message_steal_body), (dump_mem), (dump_key_value), (gst_rtsp_message_dump): * gst-libs/gst/rtsp/gstrtspmessage.h: * gst-libs/gst/rtsp/gstrtsprange.c: (parse_npt_time), (parse_npt_range), (parse_clock_range), (parse_smpte_range), (gst_rtsp_range_parse), (gst_rtsp_range_free): * gst-libs/gst/rtsp/gstrtsprange.h: * gst-libs/gst/rtsp/gstrtsptransport.c: (gst_rtsp_transport_new), (gst_rtsp_transport_init), (gst_rtsp_transport_get_mime), (gst_rtsp_transport_get_manager), (parse_mode), (parse_range), (range_as_text), (rtsp_transport_mode_as_text), (rtsp_transport_profile_as_text), (rtsp_transport_ltrans_as_text), (gst_rtsp_transport_parse), (gst_rtsp_transport_as_text), (gst_rtsp_transport_free): * gst-libs/gst/rtsp/gstrtsptransport.h: * gst-libs/gst/rtsp/gstrtspurl.c: (gst_rtsp_url_parse), (gst_rtsp_url_free), (gst_rtsp_url_set_port), (gst_rtsp_url_get_port), (gst_rtsp_url_get_request_uri): * gst-libs/gst/rtsp/gstrtspurl.h: * gst-libs/gst/sdp/Makefile.am: * gst-libs/gst/sdp/gstsdp.h: * gst-libs/gst/sdp/gstsdpmessage.c: (gst_sdp_origin_init), (gst_sdp_connection_init), (gst_sdp_bandwidth_init), (gst_sdp_time_init), (gst_sdp_zone_init), (gst_sdp_key_init), (gst_sdp_attribute_init), (gst_sdp_message_new), (gst_sdp_message_init), (gst_sdp_message_uninit), (gst_sdp_message_free), (gst_sdp_media_new), (gst_sdp_media_init), (gst_sdp_media_uninit), (gst_sdp_media_free), (gst_sdp_message_set_origin), (gst_sdp_message_get_origin), (gst_sdp_message_set_connection), (gst_sdp_message_get_connection), (gst_sdp_message_add_bandwidth), (gst_sdp_message_add_time), (gst_sdp_message_add_zone), (gst_sdp_message_set_key), (gst_sdp_message_get_key), (gst_sdp_message_get_attribute_val_n), (gst_sdp_message_get_attribute_val), (gst_sdp_message_add_attribute), (gst_sdp_message_add_media), (gst_sdp_media_add_attribute), (gst_sdp_media_add_bandwidth), (gst_sdp_media_add_format), (gst_sdp_media_get_attribute), (gst_sdp_media_get_attribute_val_n), (gst_sdp_media_get_attribute_val), (gst_sdp_media_get_format), (read_string), (read_string_del), (gst_sdp_parse_line), (gst_sdp_message_parse_buffer), (print_media), (gst_sdp_message_dump): * gst-libs/gst/sdp/gstsdpmessage.h: * pkgconfig/gstreamer-plugins-base-uninstalled.pc.in: Move SDP and RTSP from helper objects in -good to a reusable library. Use a proper gst_ namespace.