mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
sys/ximage/: Prepare for adding ximagesrc, rename of plugin to ximage etc.
Original commit message from CVS: 2005-07-21 Zaheer Abbas Merali <zaheerabbas at merali dot org> * sys/ximage/Makefile.am: * sys/ximage/ximage.c: (plugin_init): * sys/ximage/ximagesink.c: Prepare for adding ximagesrc, rename of plugin to ximage etc.
This commit is contained in:
parent
e2da9961d9
commit
10c6b4727b
4 changed files with 63 additions and 26 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2005-07-21 Zaheer Abbas Merali <zaheerabbas at merali dot org>
|
||||||
|
|
||||||
|
* sys/ximage/Makefile.am:
|
||||||
|
* sys/ximage/ximage.c: (plugin_init):
|
||||||
|
* sys/ximage/ximagesink.c:
|
||||||
|
Prepare for adding ximagesrc, rename of plugin to ximage etc.
|
||||||
|
|
||||||
|
|
||||||
2005-07-21 Wim Taymans <wim@fluendo.com>
|
2005-07-21 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_event),
|
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_event),
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
plugin_LTLIBRARIES = libgstximagesink.la
|
plugin_LTLIBRARIES = libgstximage.la
|
||||||
|
|
||||||
libgstximagesink_la_SOURCES = ximagesink.c
|
libgstximage_la_SOURCES = ximagesink.c ximage.c
|
||||||
libgstximagesink_la_CFLAGS = $(GST_CFLAGS) $(X_CFLAGS)
|
libgstximage_la_CFLAGS = $(GST_CFLAGS) $(X_CFLAGS)
|
||||||
libgstximagesink_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
libgstximage_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||||
libgstximagesink_la_LIBADD = \
|
libgstximage_la_LIBADD = \
|
||||||
$(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-$(GST_MAJORMINOR).la \
|
$(top_builddir)/gst-libs/gst/interfaces/libgstinterfaces-$(GST_MAJORMINOR).la \
|
||||||
$(top_builddir)/gst-libs/gst/video/libgstvideo-$(GST_MAJORMINOR).la \
|
$(top_builddir)/gst-libs/gst/video/libgstvideo-$(GST_MAJORMINOR).la \
|
||||||
$(X_LIBS) $(XSHM_LIBS)
|
$(X_LIBS) $(XSHM_LIBS)
|
||||||
libgstximagesink_la_DEPENDENCIES = $(top_builddir)/gst-libs/gst/video/libgstvideo-$(GST_MAJORMINOR).la
|
libgstximage_la_DEPENDENCIES = $(top_builddir)/gst-libs/gst/video/libgstvideo-$(GST_MAJORMINOR).la
|
||||||
|
|
||||||
noinst_HEADERS = ximagesink.h
|
noinst_HEADERS = ximagesink.h
|
||||||
|
|
47
sys/ximage/ximage.c
Normal file
47
sys/ximage/ximage.c
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
/* GStreamer
|
||||||
|
* Copyright (C) <2003> Julien Moutte <julien@moutte.net>
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "ximagesink.h"
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY (gst_debug_ximagesink);
|
||||||
|
|
||||||
|
static gboolean
|
||||||
|
plugin_init (GstPlugin * plugin)
|
||||||
|
{
|
||||||
|
if (!gst_element_register (plugin, "ximagesink",
|
||||||
|
GST_RANK_SECONDARY, GST_TYPE_XIMAGESINK))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY_INIT (gst_debug_ximagesink, "ximagesink", 0,
|
||||||
|
"ximagesink element");
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
|
GST_VERSION_MINOR,
|
||||||
|
"ximage",
|
||||||
|
"XFree86 video output and input elements based on standard Xlib calls",
|
||||||
|
plugin_init, VERSION, GST_LICENSE, GST_PACKAGE, GST_ORIGIN)
|
|
@ -30,7 +30,8 @@
|
||||||
|
|
||||||
/* Debugging category */
|
/* Debugging category */
|
||||||
#include <gst/gstinfo.h>
|
#include <gst/gstinfo.h>
|
||||||
GST_DEBUG_CATEGORY_STATIC (gst_debug_ximagesink);
|
|
||||||
|
GST_DEBUG_CATEGORY_EXTERN (gst_debug_ximagesink);
|
||||||
#define GST_CAT_DEFAULT gst_debug_ximagesink
|
#define GST_CAT_DEFAULT gst_debug_ximagesink
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
@ -1881,22 +1882,3 @@ gst_ximagesink_get_type (void)
|
||||||
|
|
||||||
return ximagesink_type;
|
return ximagesink_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
|
||||||
plugin_init (GstPlugin * plugin)
|
|
||||||
{
|
|
||||||
if (!gst_element_register (plugin, "ximagesink",
|
|
||||||
GST_RANK_SECONDARY, GST_TYPE_XIMAGESINK))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_INIT (gst_debug_ximagesink, "ximagesink", 0,
|
|
||||||
"ximagesink element");
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
||||||
GST_VERSION_MINOR,
|
|
||||||
"ximagesink",
|
|
||||||
"XFree86 video output plugin based on standard Xlib calls",
|
|
||||||
plugin_init, VERSION, GST_LICENSE, GST_PACKAGE, GST_ORIGIN)
|
|
||||||
|
|
Loading…
Reference in a new issue