static void
_overlay_expose (GstVideoOverlay * overlay)
{
- GESPipeline *pipeline = GES_TIMELINE_PIPELINE (overlay);
+ GESPipeline *pipeline = GES_PIPELINE (overlay);
gst_video_overlay_expose (GST_VIDEO_OVERLAY (pipeline->priv->playsink));
}
static void
_overlay_handle_events (GstVideoOverlay * overlay, gboolean handle_events)
{
- GESPipeline *pipeline = GES_TIMELINE_PIPELINE (overlay);
+ GESPipeline *pipeline = GES_PIPELINE (overlay);
gst_video_overlay_handle_events (GST_VIDEO_OVERLAY (pipeline->priv->playsink),
handle_events);
_overlay_set_render_rectangle (GstVideoOverlay * overlay, gint x,
gint y, gint width, gint height)
{
- GESPipeline *pipeline = GES_TIMELINE_PIPELINE (overlay);
+ GESPipeline *pipeline = GES_PIPELINE (overlay);
gst_video_overlay_set_render_rectangle (GST_VIDEO_OVERLAY (pipeline->priv->
playsink), x, y, width, height);
static void
_overlay_set_window_handle (GstVideoOverlay * overlay, guintptr handle)
{
- GESPipeline *pipeline = GES_TIMELINE_PIPELINE (overlay);
+ GESPipeline *pipeline = GES_PIPELINE (overlay);
gst_video_overlay_set_window_handle (GST_VIDEO_OVERLAY (pipeline->
priv->playsink), handle);
ges_pipeline_get_property (GObject * object, guint property_id,
GValue * value, GParamSpec * pspec)
{
- GESPipeline *self = GES_TIMELINE_PIPELINE (object);
+ GESPipeline *self = GES_PIPELINE (object);
switch (property_id) {
case PROP_AUDIO_SINK:
ges_pipeline_set_property (GObject * object, guint property_id,
const GValue * value, GParamSpec * pspec)
{
- GESPipeline *self = GES_TIMELINE_PIPELINE (object);
+ GESPipeline *self = GES_PIPELINE (object);
switch (property_id) {
case PROP_AUDIO_SINK:
value);
break;
case PROP_TIMELINE:
- ges_pipeline_add_timeline (GES_TIMELINE_PIPELINE (object),
+ ges_pipeline_add_timeline (GES_PIPELINE (object),
g_value_get_object (value));
break;
case PROP_MODE:
- ges_pipeline_set_mode (GES_TIMELINE_PIPELINE (object),
- g_value_get_flags (value));
+ ges_pipeline_set_mode (GES_PIPELINE (object), g_value_get_flags (value));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
static void
ges_pipeline_dispose (GObject * object)
{
- GESPipeline *self = GES_TIMELINE_PIPELINE (object);
+ GESPipeline *self = GES_PIPELINE (object);
if (self->priv->playsink) {
if (self->priv->mode & (TIMELINE_MODE_PREVIEW))
{
GST_INFO_OBJECT (self, "Creating new 'playsink'");
self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
- GES_TYPE_TIMELINE_PIPELINE, GESPipelinePrivate);
+ GES_TYPE_PIPELINE, GESPipelinePrivate);
self->priv->playsink =
gst_element_factory_make ("playsink", "internal-sinks");
GESPipeline *self;
GstStateChangeReturn ret;
- self = GES_TIMELINE_PIPELINE (element);
+ self = GES_PIPELINE (element);
switch (transition) {
case GST_STATE_CHANGE_READY_TO_PAUSED:
gboolean
ges_pipeline_add_timeline (GESPipeline * pipeline, GESTimeline * timeline)
{
- g_return_val_if_fail (GES_IS_TIMELINE_PIPELINE (pipeline), FALSE);
+ g_return_val_if_fail (GES_IS_PIPELINE (pipeline), FALSE);
g_return_val_if_fail (GES_IS_TIMELINE (timeline), FALSE);
g_return_val_if_fail (pipeline->priv->timeline == NULL, FALSE);
GError *err = NULL;
GstEncodingProfile *set_profile;
- g_return_val_if_fail (GES_IS_TIMELINE_PIPELINE (pipeline), FALSE);
+ g_return_val_if_fail (GES_IS_PIPELINE (pipeline), FALSE);
/* Clear previous URI sink if it existed */
/* FIXME : We should figure out if it was added to the pipeline,
gboolean
ges_pipeline_set_mode (GESPipeline * pipeline, GESPipelineFlags mode)
{
- g_return_val_if_fail (GES_IS_TIMELINE_PIPELINE (pipeline), FALSE);
+ g_return_val_if_fail (GES_IS_PIPELINE (pipeline), FALSE);
GST_DEBUG_OBJECT (pipeline, "current mode : %d, mode : %d",
pipeline->priv->mode, mode);
{
GstElement *sink;
- g_return_val_if_fail (GES_IS_TIMELINE_PIPELINE (self), FALSE);
+ g_return_val_if_fail (GES_IS_PIPELINE (self), FALSE);
sink = self->priv->playsink;
GstCaps *caps;
gboolean res = TRUE;
- g_return_val_if_fail (GES_IS_TIMELINE_PIPELINE (self), FALSE);
+ g_return_val_if_fail (GES_IS_PIPELINE (self), FALSE);
caps = gst_caps_from_string (format);
GstSample *ret;
GstCaps *caps;
- g_return_val_if_fail (GES_IS_TIMELINE_PIPELINE (self), FALSE);
+ g_return_val_if_fail (GES_IS_PIPELINE (self), FALSE);
caps = gst_caps_new_simple ("video/x-raw", "format", G_TYPE_STRING,
"RGB", NULL);
{
GstElement *sink = NULL;
- g_return_val_if_fail (GES_IS_TIMELINE_PIPELINE (self), FALSE);
+ g_return_val_if_fail (GES_IS_PIPELINE (self), FALSE);
g_object_get (self->priv->playsink, "video-sink", &sink, NULL);
void
ges_pipeline_preview_set_video_sink (GESPipeline * self, GstElement * sink)
{
- g_return_if_fail (GES_IS_TIMELINE_PIPELINE (self));
+ g_return_if_fail (GES_IS_PIPELINE (self));
g_object_set (self->priv->playsink, "video-sink", sink, NULL);
};
{
GstElement *sink = NULL;
- g_return_val_if_fail (GES_IS_TIMELINE_PIPELINE (self), FALSE);
+ g_return_val_if_fail (GES_IS_PIPELINE (self), FALSE);
g_object_get (self->priv->playsink, "audio-sink", &sink, NULL);
void
ges_pipeline_preview_set_audio_sink (GESPipeline * self, GstElement * sink)
{
- g_return_if_fail (GES_IS_TIMELINE_PIPELINE (self));
+ g_return_if_fail (GES_IS_PIPELINE (self));
g_object_set (self->priv->playsink, "audio-sink", sink, NULL);
};
* Boston, MA 02110-1301, USA.
*/
-#ifndef _GES_TIMELINE_PIPELINE
-#define _GES_TIMELINE_PIPELINE
+#ifndef _GES_PIPELINE
+#define _GES_PIPELINE
#include <glib-object.h>
#include <ges/ges.h>
G_BEGIN_DECLS
-#define GES_TYPE_TIMELINE_PIPELINE ges_pipeline_get_type()
+#define GES_TYPE_PIPELINE ges_pipeline_get_type()
-#define GES_TIMELINE_PIPELINE(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_TIMELINE_PIPELINE, GESPipeline))
+#define GES_PIPELINE(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST ((obj), GES_TYPE_PIPELINE, GESPipeline))
-#define GES_TIMELINE_PIPELINE_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_TIMELINE_PIPELINE, GESPipelineClass))
+#define GES_PIPELINE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST ((klass), GES_TYPE_PIPELINE, GESPipelineClass))
-#define GES_IS_TIMELINE_PIPELINE(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_TIMELINE_PIPELINE))
+#define GES_IS_PIPELINE(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GES_TYPE_PIPELINE))
-#define GES_IS_TIMELINE_PIPELINE_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_TIMELINE_PIPELINE))
+#define GES_IS_PIPELINE_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), GES_TYPE_PIPELINE))
-#define GES_TIMELINE_PIPELINE_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TIMELINE_PIPELINE, GESPipelineClass))
+#define GES_PIPELINE_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_PIPELINE, GESPipelineClass))
typedef struct _GESPipelinePrivate GESPipelinePrivate;
G_END_DECLS
-#endif /* _GES_TIMELINE_PIPELINE */
+#endif /* _GES_PIPELINE */