rtsp-stream: Set format=TIME on our app sources for TCP
authorSebastian Dröge <sebastian@centricular.com>
Thu, 15 Jan 2015 18:34:20 +0000 (19:34 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 15 Jan 2015 18:35:01 +0000 (19:35 +0100)
gst/rtsp-server/rtsp-stream.c

index 1054910..33ee7d4 100644 (file)
@@ -2009,6 +2009,7 @@ gst_rtsp_stream_join_bin (GstRTSPStream * stream, GstBin * bin,
     if (priv->protocols & GST_RTSP_LOWER_TRANS_TCP) {
       /* make and add appsrc */
       priv->appsrc[i] = gst_element_factory_make ("appsrc", NULL);
+      g_object_set (priv->appsrc[i], "format", GST_FORMAT_TIME, NULL);
       gst_bin_add (bin, priv->appsrc[i]);
       /* and link to the funnel */
       selpad = gst_element_get_request_pad (priv->funnel[i], "sink_%u");