diff --git a/examples/test-launch.c b/examples/test-launch.c
index 03bcd41..298253a 100644
--- a/examples/test-launch.c
+++ b/examples/test-launch.c
@@ -31,6 +31,12 @@ static GOptionEntry entries[] = {
   {NULL}
 };
 
+static void
+media_configure_cb (GstRTSPMediaFactory * factory, GstRTSPMedia * media)
+{
+  gst_rtsp_media_set_shared (media, TRUE);
+}
+
 int
 main (int argc, char *argv[])
 {
@@ -70,6 +76,9 @@ main (int argc, char *argv[])
   factory = gst_rtsp_media_factory_new ();
   gst_rtsp_media_factory_set_launch (factory, argv[1]);
 
+  g_signal_connect (factory, "media-configure", (GCallback) media_configure_cb,
+      NULL);
+
   /* attach the test factory to the /test url */
   gst_rtsp_mount_points_add_factory (mounts, "/test", factory);
 
