diff --git a/gst/librfb/gstrfbsrc.c b/gst/librfb/gstrfbsrc.c index bc13cfb14e..cec407745d 100644 --- a/gst/librfb/gstrfbsrc.c +++ b/gst/librfb/gstrfbsrc.c @@ -425,6 +425,8 @@ gst_rfb_src_start (GstBaseSrc * bsrc) GstVideoInfo vinfo; GstVideoFormat vformat; guint32 red_mask, green_mask, blue_mask; + gchar *stream_id = NULL; + GstEvent *stream_start = NULL; decoder = src->decoder; @@ -458,6 +460,12 @@ gst_rfb_src_start (GstBaseSrc * bsrc) } } + stream_id = gst_pad_create_stream_id_printf (GST_BASE_SRC_PAD (bsrc), + GST_ELEMENT (src), "%s:%d", src->host, src->port); + stream_start = gst_event_new_stream_start (stream_id); + g_free (stream_id); + gst_pad_push_event (GST_BASE_SRC_PAD (bsrc), stream_start); + decoder->rect_width = (decoder->rect_width ? decoder->rect_width : decoder->width); decoder->rect_height =