diff options
author | Blake Tregre <blake.tregre@gmail.com> | 2014-05-02 14:20:58 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-05-02 14:20:58 +0200 |
commit | a73a42b10fc6f1ca940238eb5898df291a5f7701 (patch) | |
tree | a5853905df5ffbf71446a094f493b7c24b0dcbec /gst | |
parent | 1aacd0a96350617cd581e5ea9add3668a4e09784 (diff) |
rfbsrc: Send stream-start event in the beginning
https://bugzilla.gnome.org/show_bug.cgi?id=726802
Diffstat (limited to 'gst')
-rw-r--r-- | gst/librfb/gstrfbsrc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gst/librfb/gstrfbsrc.c b/gst/librfb/gstrfbsrc.c index bc13cfb14..cec407745 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 = |