AC_SUBST(GST_PLUGIN_BASE_CFLAGS)
AC_SUBST(GST_PLUGIN_BASE_LIBS)
-AC_ARG_ENABLE(wayland, AC_HELP_STRING([--enable-wayland], [enable wayland]),
-[
- case "${enableval}" in
- yes) WAYLAND_SUPPORT=yes ;;
- no) WAYLAND_SUPPORT=no ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-wayland) ;;
- esac
- ],[WAYLAND_SUPPORT=no])
-if test "x$WAYLAND_SUPPORT" = "xyes"; then
-PKG_CHECK_MODULES(GST_WAYLAND, gstreamer-wayland-1.0 >= 1.2.0)
-AC_SUBST(GST_WAYLAND_CFLAGS)
-AC_SUBST(GST_WAYLAND_LIBS)
-fi
-AM_CONDITIONAL([WAYLAND_SUPPORT], [test "x$WAYLAND_SUPPORT" = "xyes"])
-
PKG_CHECK_MODULES(GST_VIDEO, gstreamer-video-1.0 >= 1.2.0)
AC_SUBST(GST_VIDEO_CFLAGS)
AC_SUBST(GST_VIDEO_LIBS)
AC_SUBST(TZPLATFORM_CONFIG_CFLAGS)
AC_SUBST(TZPLATFORM_CONFIG_LIBS)
-PKG_CHECK_MODULES(APPFWK, appcore-efl)
-AC_SUBST(APPFWK_CFLAGS)
-AC_SUBST(APPFWK_LIBS)
-
-PKG_CHECK_MODULES(ELEMENTARY, elementary)
-AC_SUBST(ELEMENTARY_CFLAGS)
-AC_SUBST(ELEMENTARY_LIBS)
-
# for testsuite
PKG_CHECK_MODULES(MMUTIL, mmutil-imgp)
AC_SUBST(MMUTIL_CFLAGS)
AC_SUBST(MMUTIL_LIBS)
-PKG_CHECK_MODULES(ECORE, ecore)
-AC_SUBST(ECORE_CFLAGS)
-AC_SUBST(ECORE_LIBS)
-
PKG_CHECK_MODULES(INIPARSER, iniparser)
AC_SUBST(INIPARSER_CFLAGS)
AC_SUBST(INIPARSER_LIBS)
-PKG_CHECK_MODULES(VCONF, vconf)
-AC_SUBST(VCONF_CFLAGS)
-AC_SUBST(VCONF_LIBS)
-
PKG_CHECK_MODULES(ICU, icu-i18n)
AC_SUBST(ICU_CFLAGS)
AC_SUBST(ICU_LIBS)
Name: libmm-player
Summary: Multimedia Framework Player Library
-Version: 0.6.41
+Version: 0.6.42
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
BuildRequires: pkgconfig(mm-sound)
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
-BuildRequires: pkgconfig(gstreamer-wayland-1.0)
BuildRequires: pkgconfig(gstreamer-video-1.0)
BuildRequires: pkgconfig(gstreamer-app-1.0)
-BuildRequires: pkgconfig(appcore-efl)
-BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(mmutil-imgp)
BuildRequires: pkgconfig(iniparser)
-BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(icu-i18n)
BuildRequires: pkgconfig(capi-media-tool)
BuildRequires: pkgconfig(murphy-resource)
%files
%manifest %{name}.manifest
-%license LICENSE.APLv2
+%license LICENSE.Apache-2.0
%defattr(-,root,root,-)
%{_libdir}/*.so.*
$(MMSOUND_CFLAGS) \
$(MRP_RESOURCE_CFLAGS) \
$(MRP_GLIB_CFLAGS) \
- $(VCONF_CFLAGS) \
$(ICU_CFLAGS) \
$(UTILX_CFLAGS) \
$(MEDIAPACKET_CFLAGS) \
$(DLOG_CFLAGS) \
- $(ECORE_CFLAGS) \
$(SYSTEMINFO_CFLAGS) \
$(STORAGE_CFLAGS) \
$(TZPLATFORM_CONFIG_CFLAGS) \
$(MMSOUND_LIBS) \
$(MRP_RESOURCE_LIBS) \
$(MRP_GLIB_LIBS) \
- $(VCONF_LIBS) \
$(ICU_LIBS) \
$(MEDIAPACKET_LIBS) \
$(DLOG_LIBS) \
$(UTILX_LIBS) \
- $(ECORE_LIBS) \
$(SYSTEMINFO_LIBS)
$(STORAGE_LIBS) \
$(TZPLATFORM_CONFIG_LIBS)
if IS_SDK
libmmfplayer_la_CFLAGS += -DIS_SDK
endif
-
-if WAYLAND_SUPPORT
-libmmfplayer_la_CFLAGS += $(GST_WAYLAND_CFLAGS)
-libmmfplayer_la_LIBADD += $(GST_WAYLAND_LIBS)
-endif
if (g_strrstr(attribute_name, "display") || g_strrstr(attribute_name, "wl_window_render_x")) {
char *param_name = NULL;
int str_len = strlen(attribute_name);
- param_name = g_malloc0(str_len);
+ param_name = g_malloc0(str_len + 1);
if (!param_name) {
LOGE("failed to alloc param_name");
return MM_ERROR_PLAYER_INTERNAL;
}
strncpy(param_name, attribute_name, str_len);
+ param_name[str_len] = '\0';
LOGD(" param_name: %s", param_name);
if (MM_ERROR_NONE != _mmplayer_update_video_param(player, param_name)) {
g_free(param_name);
MMPLAYER_MAX_INT
},
{
- "use_wl_surface",
- MM_ATTRS_TYPE_INT,
- MM_ATTRS_FLAG_RW,
- (void *) FALSE,
- MM_ATTRS_VALID_TYPE_INT_RANGE,
- FALSE,
- TRUE
- },
- {
"display_overlay_user_data",
MM_ATTRS_TYPE_DATA,
MM_ATTRS_FLAG_RW,
| INCLUDE FILES |
| |
========================================================================================== */
-#include <gst/wayland/wayland.h>
-#include <gst/video/videooverlay.h>
-
#include <dlog.h>
#include <mm_error.h>
#include <mm_attrs_private.h>
#include <gst/gst.h>
#include <gst/app/gstappsrc.h>
#include <gst/video/videooverlay.h>
-#include <gst/wayland/wayland.h>
#include <gst/audio/gstaudiobasesink.h>
#include <unistd.h>
#include <sys/stat.h>
{
MMHandleType attrs = 0;
void *handle = NULL;
- /*use wl_surface*/
- gboolean use_wl_surface = 0;
- void * wl_display = NULL;
- GstContext *context = NULL;
/* check video sinkbin is created */
if (MM_ERROR_NONE != __mmplayer_video_param_check_video_sink_bin(player))
/* common case if using overlay surface */
mm_attrs_get_data_by_name(attrs, "display_overlay", &handle);
- mm_attrs_get_int_by_name(attrs, "use_wl_surface", &use_wl_surface);
- if (handle && !use_wl_surface) {
+ if (handle) {
/* default is using wl_surface_id */
unsigned int wl_surface_id = 0;
wl_surface_id = *(int*)handle;
gst_video_overlay_set_wl_window_wl_surface_id(
GST_VIDEO_OVERLAY(player->pipeline->videobin[MMPLAYER_V_SINK].gst),
*(int*)handle);
- } else if (handle && use_wl_surface) {
- /* use wl_surface for legacy_player_test */
- mm_attrs_get_data_by_name(attrs, "wl_display", &wl_display);
- if (wl_display)
- context = gst_wayland_display_handle_context_new(wl_display);
- if (context)
- gst_element_set_context(GST_ELEMENT(player->pipeline->videobin[MMPLAYER_V_SINK].gst), context);
-
- guintptr wl_surface = (guintptr)handle;
- LOGD("[use wl_surface for legacy_player_test] set video param : wayland surface %p", handle);
- gst_video_overlay_set_window_handle(
- GST_VIDEO_OVERLAY(player->pipeline->videobin[MMPLAYER_V_SINK].gst),
- wl_surface);
} else
/* FIXIT : is it error case? */
LOGW("still we don't have a window handle on player attribute. create it's own surface.");
#include <unistd.h>
#include <dlog.h>
#include <mm_error.h>
-#include <vconf.h>
-#include <vconf-internal-sound-keys.h>
-
#include "mm_player_utils.h"
#include "mm_player_priv.h"
#include "mm_player_sound_focus.h"