rfbsrc: Send stream-start event in the beginning
https://bugzilla.gnome.org/show_bug.cgi?id=726802
This commit is contained in:
parent
1aacd0a963
commit
a73a42b10f
@ -425,6 +425,8 @@ gst_rfb_src_start (GstBaseSrc * bsrc)
|
|||||||
GstVideoInfo vinfo;
|
GstVideoInfo vinfo;
|
||||||
GstVideoFormat vformat;
|
GstVideoFormat vformat;
|
||||||
guint32 red_mask, green_mask, blue_mask;
|
guint32 red_mask, green_mask, blue_mask;
|
||||||
|
gchar *stream_id = NULL;
|
||||||
|
GstEvent *stream_start = NULL;
|
||||||
|
|
||||||
decoder = src->decoder;
|
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->rect_width : decoder->width);
|
(decoder->rect_width ? decoder->rect_width : decoder->width);
|
||||||
decoder->rect_height =
|
decoder->rect_height =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user