*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
*/
#include <gst/gst.h>
{
GMainLoop *loop;
GstRTSPServer *server;
- GstRTSPMediaMapping *mapping;
+ GstRTSPMountPoints *mounts;
GstRTSPMediaFactory *factory;
gchar *str;
/* create a server instance */
server = gst_rtsp_server_new ();
- /* get the mapping for this server, every server has a default mapper object
+ /* get the mount points for this server, every server has a default object
* that be used to map uri mount points to media factories */
- mapping = gst_rtsp_server_get_media_mapping (server);
+ mounts = gst_rtsp_server_get_mount_points (server);
/* make a media factory for a test stream. The default media factory can use
* gst-launch syntax to create pipelines.
g_free (str);
/* attach the test factory to the /test url */
- gst_rtsp_media_mapping_add_factory (mapping, "/test", factory);
+ gst_rtsp_mount_points_add_factory (mounts, "/test", factory);
/* don't need the ref to the mapper anymore */
- g_object_unref (mapping);
+ g_object_unref (mounts);
/* attach the server to the default maincontext */
gst_rtsp_server_attach (server, NULL);