test: enable SRTP only on RTSPS
authorWim Taymans <wtaymans@redhat.com>
Tue, 25 Mar 2014 11:42:39 +0000 (12:42 +0100)
committerWim Taymans <wtaymans@redhat.com>
Tue, 25 Mar 2014 11:42:39 +0000 (12:42 +0100)
We only want to enable SRTP when doing rtsp over TLS so that we can
exchange the keys in a secure way.

examples/test-video.c

index d6eb408..0d4a3a5 100644 (file)
@@ -140,8 +140,10 @@ main (int argc, char *argv[])
       GST_RTSP_PERM_MEDIA_FACTORY_CONSTRUCT, G_TYPE_BOOLEAN, TRUE, NULL);
   gst_rtsp_media_factory_set_permissions (factory, permissions);
   gst_rtsp_permissions_unref (permissions);
-#endif
+#ifdef WITH_TLS
   gst_rtsp_media_factory_set_profiles (factory, GST_RTSP_PROFILE_SAVP);
+#endif
+#endif
 
   /* attach the test factory to the /test url */
   gst_rtsp_mount_points_add_factory (mounts, "/test", factory);