mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-16 19:25:18 +00:00
Due to popular request remove preset interface again. :-(.
Original commit message from CVS: * docs/gst/gstreamer-docs.sgml: * docs/gst/gstreamer-sections.txt: * docs/gst/gstreamer.types.in: * gst/Makefile.am: * gst/gst.h: * gst/gstpreset.c: * gst/gstpreset.h: * plugins/elements/gstqueue.c: Due to popular request remove preset interface again. :-(.
This commit is contained in:
parent
fcae3bf596
commit
bb523ea0a3
9 changed files with 13 additions and 1263 deletions
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
|||
2007-11-26 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* docs/gst/gstreamer-docs.sgml:
|
||||
* docs/gst/gstreamer-sections.txt:
|
||||
* docs/gst/gstreamer.types.in:
|
||||
* gst/Makefile.am:
|
||||
* gst/gst.h:
|
||||
* gst/gstpreset.c:
|
||||
* gst/gstpreset.h:
|
||||
* plugins/elements/gstqueue.c:
|
||||
Due to popular request remove preset interface again. :-(.
|
||||
|
||||
2007-11-22 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* tools/gst-inspect.c:
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
<!ENTITY GstPipeline SYSTEM "xml/gstpipeline.xml">
|
||||
<!ENTITY GstPlugin SYSTEM "xml/gstplugin.xml">
|
||||
<!ENTITY GstPluginFeature SYSTEM "xml/gstpluginfeature.xml">
|
||||
<!ENTITY GstPreset SYSTEM "xml/gstpreset.xml">
|
||||
<!ENTITY GstQuery SYSTEM "xml/gstquery.xml">
|
||||
<!ENTITY GstRegistry SYSTEM "xml/gstregistry.xml">
|
||||
<!ENTITY GstSegment SYSTEM "xml/gstsegment.xml">
|
||||
|
@ -139,7 +138,6 @@ Windows. It is released under the GNU Library General Public License
|
|||
&GstPipeline;
|
||||
&GstPlugin;
|
||||
&GstPluginFeature;
|
||||
&GstPreset;
|
||||
&GstQuery;
|
||||
&GstRegistry;
|
||||
&GstSegment;
|
||||
|
|
|
@ -1599,29 +1599,6 @@ gst_rank_get_type
|
|||
</SECTION>
|
||||
|
||||
|
||||
<SECTION>
|
||||
<FILE>gstpreset</FILE>
|
||||
<TITLE>GstPreset</TITLE>
|
||||
GstPreset
|
||||
gst_preset_get_preset_names
|
||||
gst_preset_get_property_names
|
||||
gst_preset_load_preset
|
||||
gst_preset_save_preset
|
||||
gst_preset_rename_preset
|
||||
gst_preset_delete_preset
|
||||
gst_preset_set_meta
|
||||
gst_preset_get_meta
|
||||
gst_preset_create_preset
|
||||
<SUBSECTION Standard>
|
||||
GstPresetInterface
|
||||
GST_PRESET
|
||||
GST_IS_PRESET
|
||||
GST_TYPE_PRESET
|
||||
GST_PRESET_GET_INTERFACE
|
||||
gst_preset_get_type
|
||||
</SECTION>
|
||||
|
||||
|
||||
<SECTION>
|
||||
<FILE>gstquery</FILE>
|
||||
<TITLE>GstQuery</TITLE>
|
||||
|
|
|
@ -23,7 +23,6 @@ gst_pad_get_type
|
|||
gst_pad_template_get_type
|
||||
gst_pipeline_get_type
|
||||
gst_plugin_feature_get_type
|
||||
gst_preset_get_type
|
||||
gst_registry_get_type
|
||||
gst_system_clock_get_type
|
||||
gst_tag_setter_get_type
|
||||
|
|
|
@ -102,7 +102,6 @@ libgstreamer_@GST_MAJORMINOR@_la_SOURCES = \
|
|||
gstpipeline.c \
|
||||
gstplugin.c \
|
||||
gstpluginfeature.c \
|
||||
gstpreset.c \
|
||||
gstquark.c \
|
||||
gstquery.c \
|
||||
gstregistry.c \
|
||||
|
@ -186,7 +185,6 @@ gst_headers = \
|
|||
gstpipeline.h \
|
||||
gstplugin.h \
|
||||
gstpluginfeature.h \
|
||||
gstpreset.h \
|
||||
gstquery.h \
|
||||
gstsegment.h \
|
||||
gststructure.h \
|
||||
|
|
|
@ -54,7 +54,6 @@
|
|||
#include <gst/gstparamspecs.h>
|
||||
#include <gst/gstpipeline.h>
|
||||
#include <gst/gstplugin.h>
|
||||
#include <gst/gstpreset.h>
|
||||
#include <gst/gstquery.h>
|
||||
#include <gst/gstregistry.h>
|
||||
#include <gst/gstsegment.h>
|
||||
|
|
1138
gst/gstpreset.c
1138
gst/gstpreset.c
File diff suppressed because it is too large
Load diff
|
@ -1,87 +0,0 @@
|
|||
/* GStreamer
|
||||
* Copyright (C) 2006 Stefan Kost <ensonic@users.sf.net>
|
||||
*
|
||||
* gstpreset.h: helper interface header for element presets
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GST_PRESET_H__
|
||||
#define __GST_PRESET_H__
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <gst/gst.h>
|
||||
#include <gst/controller/gstcontroller.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GST_TYPE_PRESET (gst_preset_get_type())
|
||||
#define GST_PRESET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_PRESET, GstPreset))
|
||||
#define GST_IS_PRESET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PRESET))
|
||||
#define GST_PRESET_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_PRESET, GstPresetInterface))
|
||||
|
||||
|
||||
typedef struct _GstPreset GstPreset; /* dummy object */
|
||||
typedef struct _GstPresetInterface GstPresetInterface;
|
||||
|
||||
struct _GstPresetInterface
|
||||
{
|
||||
GTypeInterface parent;
|
||||
|
||||
gchar** (*get_preset_names) (GstPreset *self);
|
||||
GList* (*get_property_names) (GstPreset * self);
|
||||
|
||||
gboolean (*load_preset) (GstPreset *self, const gchar *name);
|
||||
gboolean (*save_preset) (GstPreset *self, const gchar *name);
|
||||
gboolean (*rename_preset) (GstPreset *self, const gchar *old_name, const gchar *new_name);
|
||||
gboolean (*delete_preset) (GstPreset *self, const gchar *name);
|
||||
|
||||
gboolean (*set_meta) (GstPreset *self,const gchar *name, const gchar *tag, gchar *value);
|
||||
gboolean (*get_meta) (GstPreset *self,const gchar *name, const gchar *tag, gchar **value);
|
||||
|
||||
void (*create_preset) (GstPreset *self);
|
||||
|
||||
/* @todo:
|
||||
*
|
||||
* need a presets-changed signal, to notify of changes in preset list
|
||||
*
|
||||
* need a way to sync class instances, we want to keep only one list for all
|
||||
* instances of a type and if the list changes, we trigger the signal for all
|
||||
* instance
|
||||
*/
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GType gst_preset_get_type(void);
|
||||
|
||||
gchar** gst_preset_get_preset_names (GstPreset *self);
|
||||
GList *gst_preset_get_property_names (GstPreset * self);
|
||||
|
||||
gboolean gst_preset_load_preset (GstPreset *self, const gchar *name);
|
||||
gboolean gst_preset_save_preset (GstPreset *self, const gchar *name);
|
||||
gboolean gst_preset_rename_preset (GstPreset *self, const gchar *old_name, const gchar *new_name);
|
||||
gboolean gst_preset_delete_preset (GstPreset *self, const gchar *name);
|
||||
|
||||
gboolean gst_preset_set_meta (GstPreset *self,const gchar *name, const gchar *tag, gchar *value);
|
||||
gboolean gst_preset_get_meta (GstPreset *self,const gchar *name, const gchar *tag, gchar **value);
|
||||
|
||||
void gst_preset_create_preset (GstPreset *self);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_PRESET_H__ */
|
|
@ -174,15 +174,7 @@ enum
|
|||
#define _do_init(bla) \
|
||||
GST_DEBUG_CATEGORY_INIT (queue_debug, "queue", 0, "queue element"); \
|
||||
GST_DEBUG_CATEGORY_INIT (queue_dataflow, "queue_dataflow", 0, \
|
||||
"dataflow inside the queue element"); \
|
||||
{ \
|
||||
const GInterfaceInfo preset_interface_info = { \
|
||||
NULL, /* interface_init */ \
|
||||
NULL, /* interface_finalize */ \
|
||||
NULL /* interface_data */ \
|
||||
}; \
|
||||
g_type_add_interface_static(object_type, GST_TYPE_PRESET, &preset_interface_info); \
|
||||
}
|
||||
"dataflow inside the queue element");
|
||||
|
||||
GST_BOILERPLATE_FULL (GstQueue, gst_queue, GstElement,
|
||||
GST_TYPE_ELEMENT, _do_init);
|
||||
|
|
Loading…
Reference in a new issue