mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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_get_video_sink
|
||||||
ges_pipeline_preview_set_audio_sink
|
ges_pipeline_preview_set_audio_sink
|
||||||
ges_pipeline_preview_set_video_sink
|
ges_pipeline_preview_set_video_sink
|
||||||
|
ges_pipeline_get_mode
|
||||||
ges_pipeline_get_thumbnail
|
ges_pipeline_get_thumbnail
|
||||||
ges_pipeline_get_thumbnail_rgb24
|
ges_pipeline_get_thumbnail_rgb24
|
||||||
ges_pipeline_save_thumbnail
|
ges_pipeline_save_thumbnail
|
||||||
|
|
|
@ -113,8 +113,8 @@ _overlay_set_render_rectangle (GstVideoOverlay * overlay, gint x,
|
||||||
{
|
{
|
||||||
GESPipeline *pipeline = GES_TIMELINE_PIPELINE (overlay);
|
GESPipeline *pipeline = GES_TIMELINE_PIPELINE (overlay);
|
||||||
|
|
||||||
gst_video_overlay_set_render_rectangle (GST_VIDEO_OVERLAY (pipeline->
|
gst_video_overlay_set_render_rectangle (GST_VIDEO_OVERLAY (pipeline->priv->
|
||||||
priv->playsink), x, y, width, height);
|
playsink), x, y, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -122,8 +122,8 @@ _overlay_set_window_handle (GstVideoOverlay * overlay, guintptr handle)
|
||||||
{
|
{
|
||||||
GESPipeline *pipeline = GES_TIMELINE_PIPELINE (overlay);
|
GESPipeline *pipeline = GES_TIMELINE_PIPELINE (overlay);
|
||||||
|
|
||||||
gst_video_overlay_set_window_handle (GST_VIDEO_OVERLAY (pipeline->priv->
|
gst_video_overlay_set_window_handle (GST_VIDEO_OVERLAY (pipeline->
|
||||||
playsink), handle);
|
priv->playsink), handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -430,8 +430,8 @@ ges_pipeline_change_state (GstElement * element, GstStateChange transition)
|
||||||
ret = GST_STATE_CHANGE_FAILURE;
|
ret = GST_STATE_CHANGE_FAILURE;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
if (self->
|
if (self->priv->
|
||||||
priv->mode & (TIMELINE_MODE_RENDER | TIMELINE_MODE_SMART_RENDER))
|
mode & (TIMELINE_MODE_RENDER | TIMELINE_MODE_SMART_RENDER))
|
||||||
GST_DEBUG ("rendering => Updating pipeline caps");
|
GST_DEBUG ("rendering => Updating pipeline caps");
|
||||||
if (!ges_pipeline_update_caps (self)) {
|
if (!ges_pipeline_update_caps (self)) {
|
||||||
GST_ERROR_OBJECT (element, "Error setting the caps for rendering");
|
GST_ERROR_OBJECT (element, "Error setting the caps for rendering");
|
||||||
|
@ -892,6 +892,18 @@ ges_pipeline_set_render_settings (GESPipeline * pipeline,
|
||||||
return TRUE;
|
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:
|
* ges_pipeline_set_mode:
|
||||||
* @pipeline: a #GESPipeline
|
* @pipeline: a #GESPipeline
|
||||||
|
|
|
@ -88,6 +88,8 @@ gboolean ges_pipeline_set_render_settings (GESPipeline *pipeline,
|
||||||
gboolean ges_pipeline_set_mode (GESPipeline *pipeline,
|
gboolean ges_pipeline_set_mode (GESPipeline *pipeline,
|
||||||
GESPipelineFlags mode);
|
GESPipelineFlags mode);
|
||||||
|
|
||||||
|
GESPipelineFlags ges_pipeline_get_mode (GESPipeline *pipeline);
|
||||||
|
|
||||||
GstSample *
|
GstSample *
|
||||||
ges_pipeline_get_thumbnail(GESPipeline *self, GstCaps *caps);
|
ges_pipeline_get_thumbnail(GESPipeline *self, GstCaps *caps);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue