mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
playback: merge playbin and decodebin plugins into one single playback plugin again
This commit is contained in:
parent
b5ef8efa1a
commit
5fd073e070
5 changed files with 22 additions and 68 deletions
|
@ -6,9 +6,11 @@ glib_gen_basename = gstplay
|
||||||
built_sources = gstplay-marshal.c
|
built_sources = gstplay-marshal.c
|
||||||
built_headers = gstplay-marshal.h
|
built_headers = gstplay-marshal.h
|
||||||
|
|
||||||
plugin_LTLIBRARIES = libgstplaybin.la libgstdecodebin2.la
|
plugin_LTLIBRARIES = libgstplayback.la
|
||||||
|
|
||||||
libgstplaybin_la_SOURCES = \
|
libgstplayback_la_SOURCES = \
|
||||||
|
gstdecodebin2.c \
|
||||||
|
gsturidecodebin.c \
|
||||||
gstplayback.c \
|
gstplayback.c \
|
||||||
gstplaybin2.c \
|
gstplaybin2.c \
|
||||||
gstplaysink.c \
|
gstplaysink.c \
|
||||||
|
@ -19,24 +21,15 @@ libgstplaybin_la_SOURCES = \
|
||||||
gstplaysinkaudioconvert.c \
|
gstplaysinkaudioconvert.c \
|
||||||
gststreamsynchronizer.c
|
gststreamsynchronizer.c
|
||||||
|
|
||||||
nodist_libgstplaybin_la_SOURCES = $(built_sources)
|
nodist_libgstplayback_la_SOURCES = $(built_sources)
|
||||||
libgstplaybin_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
|
libgstplayback_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
|
||||||
libgstplaybin_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
libgstplayback_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||||
libgstplaybin_la_LIBADD = \
|
libgstplayback_la_LIBADD = \
|
||||||
$(top_builddir)/gst-libs/gst/pbutils/libgstpbutils-@GST_MAJORMINOR@.la \
|
$(top_builddir)/gst-libs/gst/pbutils/libgstpbutils-@GST_MAJORMINOR@.la \
|
||||||
$(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 \
|
||||||
$(GST_LIBS)
|
$(GST_LIBS)
|
||||||
libgstplaybin_la_LIBTOOLFLAGS = --tag=disable-static
|
libgstplayback_la_LIBTOOLFLAGS = --tag=disable-static
|
||||||
|
|
||||||
libgstdecodebin2_la_SOURCES = gstdecodebin2.c gsturidecodebin.c gstplay-enum.c
|
|
||||||
nodist_libgstdecodebin2_la_SOURCES = $(built_sources)
|
|
||||||
libgstdecodebin2_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
|
|
||||||
libgstdecodebin2_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
|
||||||
libgstdecodebin2_la_LIBADD = \
|
|
||||||
$(top_builddir)/gst-libs/gst/pbutils/libgstpbutils-@GST_MAJORMINOR@.la \
|
|
||||||
$(GST_LIBS)
|
|
||||||
libgstdecodebin2_la_LIBTOOLFLAGS = --tag=disable-static
|
|
||||||
|
|
||||||
noinst_HEADERS = \
|
noinst_HEADERS = \
|
||||||
gstplayback.h \
|
gstplayback.h \
|
||||||
|
@ -59,26 +52,14 @@ include $(top_srcdir)/common/gst-glib-gen.mak
|
||||||
|
|
||||||
Android.mk: Makefile.am $(BUILT_SOURCES)
|
Android.mk: Makefile.am $(BUILT_SOURCES)
|
||||||
androgenizer \
|
androgenizer \
|
||||||
-:PROJECT libgstdecodebin2 -:SHARED libgstdecodebin2 \
|
-:PROJECT libgstplayback -:SHARED libgstplayback \
|
||||||
-:TAGS eng debug \
|
-:TAGS eng debug \
|
||||||
-:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
|
-:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
|
||||||
-:SOURCES $(libgstdecodebin2_la_SOURCES) \
|
-:SOURCES $(libgstplayback_la_SOURCES) \
|
||||||
$(nodist_libgstdecodebin2_la_SOURCES) \
|
$(nodist_libgstplayback_la_SOURCES) \
|
||||||
-:CFLAGS $(DEFS) $(DEFAULT_INCLUDES) $(libgstdecodebin2_la_CFLAGS) \
|
-:CFLAGS $(DEFS) $(DEFAULT_INCLUDES) $(libgstplayback_la_CFLAGS) \
|
||||||
-:LDFLAGS $(libgstdecodebin2_la_LDFLAGS) \
|
-:LDFLAGS $(libgstplayback_la_LDFLAGS) \
|
||||||
$(libgstdecodebin2_la_LIBADD) \
|
$(libgstplayback_la_LIBADD) \
|
||||||
-ldl \
|
|
||||||
-:PASSTHROUGH LOCAL_ARM_MODE:=arm \
|
|
||||||
LOCAL_MODULE_PATH:='$$(TARGET_OUT)/lib/gstreamer-0.10' \
|
|
||||||
\
|
|
||||||
-:PROJECT libgstplaybin -:SHARED libgstplaybin \
|
|
||||||
-:TAGS eng debug \
|
|
||||||
-:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
|
|
||||||
-:SOURCES $(libgstplaybin_la_SOURCES) \
|
|
||||||
$(nodist_libgstplaybin_la_SOURCES) \
|
|
||||||
-:CFLAGS $(DEFS) $(DEFAULT_INCLUDES) $(libgstplaybin_la_CFLAGS) \
|
|
||||||
-:LDFLAGS $(libgstplaybin_la_LDFLAGS) \
|
|
||||||
$(libgstplaybin_la_LIBADD) \
|
|
||||||
-ldl \
|
-ldl \
|
||||||
-:PASSTHROUGH LOCAL_ARM_MODE:=arm \
|
-:PASSTHROUGH LOCAL_ARM_MODE:=arm \
|
||||||
LOCAL_MODULE_PATH:='$$(TARGET_OUT)/lib/gstreamer-0.10' \
|
LOCAL_MODULE_PATH:='$$(TARGET_OUT)/lib/gstreamer-0.10' \
|
||||||
|
|
|
@ -3790,13 +3790,6 @@ gst_decode_bin_plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
GST_DEBUG_CATEGORY_INIT (gst_decode_bin_debug, "decodebin", 0, "decoder bin");
|
GST_DEBUG_CATEGORY_INIT (gst_decode_bin_debug, "decodebin", 0, "decoder bin");
|
||||||
|
|
||||||
#ifdef ENABLE_NLS
|
|
||||||
GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
|
|
||||||
LOCALEDIR);
|
|
||||||
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
|
|
||||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
|
||||||
#endif /* ENABLE_NLS */
|
|
||||||
|
|
||||||
/* Register some quarks here for the stream topology message */
|
/* Register some quarks here for the stream topology message */
|
||||||
topology_structure_name = g_quark_from_static_string ("stream-topology");
|
topology_structure_name = g_quark_from_static_string ("stream-topology");
|
||||||
topology_caps = g_quark_from_static_string ("caps");
|
topology_caps = g_quark_from_static_string ("caps");
|
||||||
|
|
|
@ -54,6 +54,9 @@ plugin_init (GstPlugin * plugin)
|
||||||
res &= gst_play_sink_plugin_init (plugin);
|
res &= gst_play_sink_plugin_init (plugin);
|
||||||
res &= gst_subtitle_overlay_plugin_init (plugin);
|
res &= gst_subtitle_overlay_plugin_init (plugin);
|
||||||
|
|
||||||
|
res &= gst_decode_bin_plugin_init (plugin);
|
||||||
|
res &= gst_uri_decode_bin_plugin_init (plugin);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
gboolean gst_decode_bin_plugin_init (GstPlugin * plugin);
|
gboolean gst_decode_bin_plugin_init (GstPlugin * plugin);
|
||||||
|
gboolean gst_uri_decode_bin_plugin_init (GstPlugin * plugin);
|
||||||
|
|
||||||
gboolean gst_play_bin_plugin_init (GstPlugin * plugin);
|
gboolean gst_play_bin_plugin_init (GstPlugin * plugin);
|
||||||
gboolean gst_play_bin2_plugin_init (GstPlugin * plugin);
|
gboolean gst_play_bin2_plugin_init (GstPlugin * plugin);
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
#include "gstplay-marshal.h"
|
#include "gstplay-marshal.h"
|
||||||
#include "gstplay-enum.h"
|
#include "gstplay-enum.h"
|
||||||
#include "gstrawcaps.h"
|
#include "gstrawcaps.h"
|
||||||
|
#include "gstplayback.h"
|
||||||
|
|
||||||
#define GST_TYPE_URI_DECODE_BIN \
|
#define GST_TYPE_URI_DECODE_BIN \
|
||||||
(gst_uri_decode_bin_get_type())
|
(gst_uri_decode_bin_get_type())
|
||||||
|
@ -2544,38 +2545,12 @@ setup_failed:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean gst_decode_bin_plugin_init (GstPlugin * plugin);
|
gboolean
|
||||||
|
|
||||||
static gboolean
|
|
||||||
gst_uri_decode_bin_plugin_init (GstPlugin * plugin)
|
gst_uri_decode_bin_plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
GST_DEBUG_CATEGORY_INIT (gst_uri_decode_bin_debug, "uridecodebin", 0,
|
GST_DEBUG_CATEGORY_INIT (gst_uri_decode_bin_debug, "uridecodebin", 0,
|
||||||
"URI decoder element");
|
"URI decoder element");
|
||||||
|
|
||||||
#ifdef ENABLE_NLS
|
|
||||||
GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
|
|
||||||
LOCALEDIR);
|
|
||||||
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
|
|
||||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
|
||||||
#endif /* ENABLE_NLS */
|
|
||||||
|
|
||||||
return gst_element_register (plugin, "uridecodebin", GST_RANK_NONE,
|
return gst_element_register (plugin, "uridecodebin", GST_RANK_NONE,
|
||||||
GST_TYPE_URI_DECODE_BIN);
|
GST_TYPE_URI_DECODE_BIN);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
|
||||||
plugin_init (GstPlugin * plugin)
|
|
||||||
{
|
|
||||||
if (!gst_decode_bin_plugin_init (plugin))
|
|
||||||
return FALSE;
|
|
||||||
if (!gst_uri_decode_bin_plugin_init (plugin))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
||||||
GST_VERSION_MINOR,
|
|
||||||
"uridecodebin",
|
|
||||||
"URI Decoder bin", plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME,
|
|
||||||
GST_PACKAGE_ORIGIN)
|
|
||||||
|
|
Loading…
Reference in a new issue