mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
pipeline: add a get_mode method.
This commit is contained in:
parent
2226882a5c
commit
2e1e88fb22
3 changed files with 21 additions and 6 deletions
|
@ -464,6 +464,7 @@ ges_pipeline_preview_get_audio_sink
|
|||
ges_pipeline_preview_get_video_sink
|
||||
ges_pipeline_preview_set_audio_sink
|
||||
ges_pipeline_preview_set_video_sink
|
||||
ges_pipeline_get_mode
|
||||
ges_pipeline_get_thumbnail
|
||||
ges_pipeline_get_thumbnail_rgb24
|
||||
ges_pipeline_save_thumbnail
|
||||
|
|
|
@ -113,8 +113,8 @@ _overlay_set_render_rectangle (GstVideoOverlay * overlay, gint x,
|
|||
{
|
||||
GESPipeline *pipeline = GES_TIMELINE_PIPELINE (overlay);
|
||||
|
||||
gst_video_overlay_set_render_rectangle (GST_VIDEO_OVERLAY (pipeline->
|
||||
priv->playsink), x, y, width, height);
|
||||
gst_video_overlay_set_render_rectangle (GST_VIDEO_OVERLAY (pipeline->priv->
|
||||
playsink), x, y, width, height);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -122,8 +122,8 @@ _overlay_set_window_handle (GstVideoOverlay * overlay, guintptr handle)
|
|||
{
|
||||
GESPipeline *pipeline = GES_TIMELINE_PIPELINE (overlay);
|
||||
|
||||
gst_video_overlay_set_window_handle (GST_VIDEO_OVERLAY (pipeline->priv->
|
||||
playsink), handle);
|
||||
gst_video_overlay_set_window_handle (GST_VIDEO_OVERLAY (pipeline->
|
||||
priv->playsink), handle);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -430,8 +430,8 @@ ges_pipeline_change_state (GstElement * element, GstStateChange transition)
|
|||
ret = GST_STATE_CHANGE_FAILURE;
|
||||
goto done;
|
||||
}
|
||||
if (self->
|
||||
priv->mode & (TIMELINE_MODE_RENDER | TIMELINE_MODE_SMART_RENDER))
|
||||
if (self->priv->
|
||||
mode & (TIMELINE_MODE_RENDER | TIMELINE_MODE_SMART_RENDER))
|
||||
GST_DEBUG ("rendering => Updating pipeline caps");
|
||||
if (!ges_pipeline_update_caps (self)) {
|
||||
GST_ERROR_OBJECT (element, "Error setting the caps for rendering");
|
||||
|
@ -892,6 +892,18 @@ ges_pipeline_set_render_settings (GESPipeline * pipeline,
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* ges_pipeline_get_mode:
|
||||
* @pipeline: a #GESPipeline
|
||||
*
|
||||
* Returns: the #GESPipelineFlags currently in use.
|
||||
**/
|
||||
GESPipelineFlags
|
||||
ges_pipeline_get_mode (GESPipeline * pipeline)
|
||||
{
|
||||
return pipeline->priv->mode;
|
||||
}
|
||||
|
||||
/**
|
||||
* ges_pipeline_set_mode:
|
||||
* @pipeline: a #GESPipeline
|
||||
|
|
|
@ -88,6 +88,8 @@ gboolean ges_pipeline_set_render_settings (GESPipeline *pipeline,
|
|||
gboolean ges_pipeline_set_mode (GESPipeline *pipeline,
|
||||
GESPipelineFlags mode);
|
||||
|
||||
GESPipelineFlags ges_pipeline_get_mode (GESPipeline *pipeline);
|
||||
|
||||
GstSample *
|
||||
ges_pipeline_get_thumbnail(GESPipeline *self, GstCaps *caps);
|
||||
|
||||
|
|
Loading…
Reference in a new issue