mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
visual: small improvements
This commit is contained in:
parent
f565812e25
commit
4fa7dfb07a
1 changed files with 4 additions and 5 deletions
|
@ -327,6 +327,7 @@ beach:
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_visual_src_setcaps (GstVisual * visual, GstCaps * caps)
|
gst_visual_src_setcaps (GstVisual * visual, GstCaps * caps)
|
||||||
{
|
{
|
||||||
|
gboolean res;
|
||||||
GstStructure *structure;
|
GstStructure *structure;
|
||||||
gint depth, pitch;
|
gint depth, pitch;
|
||||||
|
|
||||||
|
@ -358,9 +359,9 @@ gst_visual_src_setcaps (GstVisual * visual, GstCaps * caps)
|
||||||
visual->duration =
|
visual->duration =
|
||||||
gst_util_uint64_scale_int (GST_SECOND, visual->fps_d, visual->fps_n);
|
gst_util_uint64_scale_int (GST_SECOND, visual->fps_d, visual->fps_n);
|
||||||
|
|
||||||
gst_pad_push_event (visual->srcpad, gst_event_new_caps (caps));
|
res = gst_pad_push_event (visual->srcpad, gst_event_new_caps (caps));
|
||||||
|
|
||||||
return TRUE;
|
return res;
|
||||||
|
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
error:
|
error:
|
||||||
|
@ -630,9 +631,7 @@ gst_visual_src_query (GstPad * pad, GstQuery * query)
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* allocate and output buffer, if no format was negotiated, this
|
/* Make sure we are negotiated */
|
||||||
* function will negotiate one. After calling this function, a
|
|
||||||
* reverse negotiation could have happened. */
|
|
||||||
static GstFlowReturn
|
static GstFlowReturn
|
||||||
ensure_negotiated (GstVisual * visual)
|
ensure_negotiated (GstVisual * visual)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue