From: Wim Taymans Date: Mon, 28 Feb 2011 10:47:44 +0000 (+0100) Subject: Merge branch 'master' into 0.11 X-Git-Tag: 1.19.3~511^2~7808 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c6dd11981d5932c34e587295b574945e9d47426e;hp=fa300aee2006b1771c7dd77c8cfd5730296ab5f1;p=platform%2Fupstream%2Fgstreamer.git Merge branch 'master' into 0.11 Conflicts: configure.ac gst-libs/gst/pbutils/Makefile.am --- diff --git a/android/alsa.mk b/android/alsa.mk index 3815a0e..0cb30e1 100644 --- a/android/alsa.mk +++ b/android/alsa.mk @@ -19,14 +19,14 @@ LOCAL_SRC_FILES:= $(addprefix ../,$(alsa_LOCAL_SRC_FILES)) LOCAL_SHARED_LIBRARIES := \ libdl \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 \ - libgstinterfaces-0.10 \ - libgstaudio-0.10 + libgstinterfaces-0.11 \ + libgstaudio-0.11 LOCAL_MODULE:= libgstalsa @@ -37,7 +37,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/../gst-libs \ $(LOCAL_PATH)/.. \ $(LOCAL_PATH) \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include \ @@ -53,8 +53,8 @@ LOCAL_CFLAGS := -DHAVE_CONFIG_H -DGSTREAMER_BUILT_FOR_ANDROID # LOCAL_PRELINK_MODULE := false -#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.10 -LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.10 +#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.11 +LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.11 $(TARGET_OUT)/lib/libgstalsa.so: diff --git a/android/app.mk b/android/app.mk index 8ce87f8..c579657 100644 --- a/android/app.mk +++ b/android/app.mk @@ -1,7 +1,7 @@ LOCAL_PATH:= $(call my-dir) #---------------------------------------- # include -gst_app_COPY_HEADERS_TO := gstreamer-0.10/gst/app +gst_app_COPY_HEADERS_TO := gstreamer-0.11/gst/app gst_app_COPY_HEADERS := \ ../gst-libs/gst/app/gstappbuffer.h \ ../gst-libs/gst/app/gstappsink.h \ @@ -22,14 +22,14 @@ LOCAL_SRC_FILES:= $(addprefix ../,$(app_LOCAL_SRC_FILES_BASE)) \ $(addprefix ../android/,$(app_LOCAL_SRC_FILES_ANDROID)) LOCAL_SHARED_LIBRARIES := \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 -LOCAL_MODULE:= libgstapp-0.10 +LOCAL_MODULE:= libgstapp-0.11 LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/../gst-libs/gst/app \ @@ -37,7 +37,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/.. \ $(LOCAL_PATH) \ $(LOCAL_PATH)/gst-libs/gst/app \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include diff --git a/android/app_plugin.mk b/android/app_plugin.mk index a4cfeb8..7d69ab7 100644 --- a/android/app_plugin.mk +++ b/android/app_plugin.mk @@ -10,13 +10,13 @@ app_plugin_LOCAL_SRC_FILES:= \ LOCAL_SRC_FILES:= $(addprefix ../,$(app_plugin_LOCAL_SRC_FILES)) LOCAL_SHARED_LIBRARIES := \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 \ - libgstapp-0.10 + libgstapp-0.11 LOCAL_MODULE:= libgstapp @@ -25,7 +25,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/../gst-libs \ $(LOCAL_PATH)/.. \ $(LOCAL_PATH) \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include @@ -41,7 +41,7 @@ LOCAL_CFLAGS := -DHAVE_CONFIG_H -DGSTREAMER_BUILT_FOR_ANDROID # LOCAL_PRELINK_MODULE := false -#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.10 -LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.10 +#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.11 +LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.11 include $(BUILD_SHARED_LIBRARY) diff --git a/android/audio.mk b/android/audio.mk index 7111b98..96cdaac 100644 --- a/android/audio.mk +++ b/android/audio.mk @@ -1,7 +1,7 @@ LOCAL_PATH:= $(call my-dir) #---------------------------------------- # include -gst_audio_COPY_HEADERS_TO := gstreamer-0.10/gst/audio +gst_audio_COPY_HEADERS_TO := gstreamer-0.11/gst/audio gst_audio_COPY_HEADERS_BASE := \ gst-libs/gst/audio/audio.h \ gst-libs/gst/audio/gstaudioclock.h \ @@ -44,15 +44,15 @@ LOCAL_SRC_FILES:= $(addprefix ../,$(audio_LOCAL_SRC_FILES_BASE)) \ $(addprefix ../android/,$(audio_LOCAL_SRC_FILES_ANDROID)) LOCAL_SHARED_LIBRARIES := \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 \ - libgstinterfaces-0.10 + libgstinterfaces-0.11 -LOCAL_MODULE:= libgstaudio-0.10 +LOCAL_MODULE:= libgstaudio-0.11 LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/../gst-libs/gst/audio \ @@ -60,7 +60,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/.. \ $(LOCAL_PATH) \ $(LOCAL_PATH)/gst-libs/gst/audio \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include diff --git a/android/audioconvert.mk b/android/audioconvert.mk index 5b69254..ef2537f 100644 --- a/android/audioconvert.mk +++ b/android/audioconvert.mk @@ -14,14 +14,14 @@ audioconvert_LOCAL_SRC_FILES:= \ LOCAL_SRC_FILES:= $(addprefix ../,$(audioconvert_LOCAL_SRC_FILES)) LOCAL_SHARED_LIBRARIES := \ - libgstaudio-0.10 \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstaudio-0.11 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 \ - libgstpbutils-0.10 + libgstpbutils-0.11 LOCAL_MODULE:= libgstaudioconvert @@ -31,7 +31,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/../gst-libs \ $(LOCAL_PATH) \ $(LOCAL_PATH)/gst-libs/gst/audio \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include @@ -47,7 +47,7 @@ LOCAL_CFLAGS := -DHAVE_CONFIG_H -DGSTREAMER_BUILT_FOR_ANDROID # LOCAL_PRELINK_MODULE := false -#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.10 -LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.10 +#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.11 +LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.11 include $(BUILD_SHARED_LIBRARY) diff --git a/android/decodebin.mk b/android/decodebin.mk index b67f686..68d8821 100644 --- a/android/decodebin.mk +++ b/android/decodebin.mk @@ -13,13 +13,13 @@ LOCAL_SRC_FILES:= $(addprefix ../,$(decodebin_LOCAL_SRC_FILES_BASE)) \ $(addprefix ../android/,$(decodebin_LOCAL_SRC_FILES_ANDROID)) LOCAL_SHARED_LIBRARIES := \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 \ - libgstpbutils-0.10 + libgstpbutils-0.11 LOCAL_MODULE:= libgstdecodebin @@ -29,7 +29,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/.. \ $(LOCAL_PATH) \ $(LOCAL_PATH)/gst/playback \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include @@ -45,7 +45,7 @@ LOCAL_CFLAGS := -DHAVE_CONFIG_H -DGSTREAMER_BUILT_FOR_ANDROID # LOCAL_PRELINK_MODULE := false -#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.10 -LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.10 +#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.11 +LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.11 include $(BUILD_SHARED_LIBRARY) diff --git a/android/decodebin2.mk b/android/decodebin2.mk index b44ce11..929219d 100644 --- a/android/decodebin2.mk +++ b/android/decodebin2.mk @@ -16,13 +16,13 @@ LOCAL_SRC_FILES:= $(addprefix ../,$(decodebin2_LOCAL_SRC_FILES_BASE)) \ $(addprefix ../android/,$(decodebin2_LOCAL_SRC_FILES_ANDROID)) LOCAL_SHARED_LIBRARIES := \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 \ - libgstpbutils-0.10 + libgstpbutils-0.11 LOCAL_MODULE:= libgstdecodebin2 @@ -32,7 +32,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/.. \ $(LOCAL_PATH) \ $(LOCAL_PATH)/gst/playback \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include @@ -48,7 +48,7 @@ LOCAL_CFLAGS := -DHAVE_CONFIG_H # LOCAL_PRELINK_MODULE := false -#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.10 -LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.10 +#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.11 +LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.11 include $(BUILD_SHARED_LIBRARY) diff --git a/android/gdp.mk b/android/gdp.mk index 67fc649..f8b0b53 100644 --- a/android/gdp.mk +++ b/android/gdp.mk @@ -12,13 +12,13 @@ gdp_LOCAL_SRC_FILES:= \ LOCAL_SRC_FILES:= $(addprefix ../,$(gdp_LOCAL_SRC_FILES)) LOCAL_SHARED_LIBRARIES := \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 \ - libgstdataprotocol-0.10 + libgstdataprotocol-0.11 LOCAL_MODULE:= libgstgdp @@ -28,7 +28,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/.. \ $(LOCAL_PATH) \ $(LOCAL_PATH)/gst/tcp \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include @@ -44,7 +44,7 @@ LOCAL_CFLAGS := -DHAVE_CONFIG_H -DGSTREAMER_BUILT_FOR_ANDROID # LOCAL_PRELINK_MODULE := false -#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.10 -LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.10 +#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.11 +LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.11 include $(BUILD_SHARED_LIBRARY) diff --git a/android/interfaces.mk b/android/interfaces.mk index 91bb1d5..9190867 100644 --- a/android/interfaces.mk +++ b/android/interfaces.mk @@ -1,7 +1,7 @@ LOCAL_PATH:= $(call my-dir) #---------------------------------------- # include -gst_interfaces_COPY_HEADERS_TO := gstreamer-0.10/gst/interfaces +gst_interfaces_COPY_HEADERS_TO := gstreamer-0.11/gst/interfaces gst_interfaces_COPY_HEADERS_BASE := \ gst-libs/gst/interfaces/colorbalance.h \ gst-libs/gst/interfaces/colorbalancechannel.h \ @@ -48,14 +48,14 @@ LOCAL_SRC_FILES:= $(addprefix ../,$(interfaces_LOCAL_SRC_FILES_BASE)) \ $(addprefix ../android/,$(interfaces_LOCAL_SRC_FILES_ANDROID)) LOCAL_SHARED_LIBRARIES := \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 -LOCAL_MODULE:= libgstinterfaces-0.10 +LOCAL_MODULE:= libgstinterfaces-0.11 LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/../gst-libs/gst/interfaces \ @@ -63,7 +63,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/.. \ $(LOCAL_PATH) \ $(LOCAL_PATH)/gst-libs/gst/interfaces \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include diff --git a/android/netbuffer.mk b/android/netbuffer.mk index c3efd8b..5a42f8c 100644 --- a/android/netbuffer.mk +++ b/android/netbuffer.mk @@ -1,7 +1,7 @@ LOCAL_PATH:= $(call my-dir) #---------------------------------------- # include -gst_netbuffer_COPY_HEADERS_TO := gstreamer-0.10/gst/netbuffer +gst_netbuffer_COPY_HEADERS_TO := gstreamer-0.11/gst/netbuffer gst_netbuffer_COPY_HEADERS := \ ../gst-libs/gst/netbuffer/gstnetbuffer.h @@ -15,14 +15,14 @@ netbuffer_LOCAL_SRC_FILES:= \ LOCAL_SRC_FILES:= $(addprefix ../,$(netbuffer_LOCAL_SRC_FILES)) LOCAL_SHARED_LIBRARIES := \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 -LOCAL_MODULE:= libgstnetbuffer-0.10 +LOCAL_MODULE:= libgstnetbuffer-0.11 LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/../gst-libs/gst/netbuffer \ @@ -30,7 +30,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/.. \ $(LOCAL_PATH) \ $(LOCAL_PATH)/../gst/tcp \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include diff --git a/android/pbutils.mk b/android/pbutils.mk index facd6a9..30d624c5 100644 --- a/android/pbutils.mk +++ b/android/pbutils.mk @@ -1,7 +1,7 @@ LOCAL_PATH:= $(call my-dir) #---------------------------------------- # include -gst_pbutils_COPY_HEADERS_TO := gstreamer-0.10/gst/pbutils +gst_pbutils_COPY_HEADERS_TO := gstreamer-0.11/gst/pbutils gst_pbutils_COPY_HEADERS_BASE := \ gst-libs/gst/pbutils/descriptions.h \ gst-libs/gst/pbutils/install-plugins.h \ @@ -31,14 +31,14 @@ LOCAL_SRC_FILES:= $(addprefix ../,$(pbutils_LOCAL_SRC_FILES_BASE)) \ $(addprefix ../android/,$(pbutils_LOCAL_SRC_FILES_ANDROID)) LOCAL_SHARED_LIBRARIES := \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 -LOCAL_MODULE:= libgstpbutils-0.10 +LOCAL_MODULE:= libgstpbutils-0.11 LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/../gst-libs/gst/pbutils \ @@ -46,7 +46,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/.. \ $(LOCAL_PATH) \ $(LOCAL_PATH)/gst-libs/gst/pbutils \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include diff --git a/android/playbin.mk b/android/playbin.mk index cb7fa10..a0ef2d7 100644 --- a/android/playbin.mk +++ b/android/playbin.mk @@ -23,15 +23,15 @@ LOCAL_SRC_FILES:= $(addprefix ../,$(playbin_LOCAL_SRC_FILES_BASE)) \ $(addprefix ../android/,$(playbin_LOCAL_SRC_FILES_ANDROID)) LOCAL_SHARED_LIBRARIES := \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 \ - libgstpbutils-0.10 \ - libgstinterfaces-0.10 \ - libgstvideo-0.10 + libgstpbutils-0.11 \ + libgstinterfaces-0.11 \ + libgstvideo-0.11 LOCAL_MODULE:= libgstplaybin @@ -41,7 +41,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/.. \ $(LOCAL_PATH) \ $(LOCAL_PATH)/gst/playback \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include @@ -58,7 +58,7 @@ LOCAL_CFLAGS := -DHAVE_CONFIG_H -DGSTREAMER_BUILT_FOR_ANDROID # LOCAL_PRELINK_MODULE := false -#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.10 -LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.10 +#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.11 +LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.11 include $(BUILD_SHARED_LIBRARY) diff --git a/android/queue2.mk b/android/queue2.mk index 65f1f1e..9f080be 100644 --- a/android/queue2.mk +++ b/android/queue2.mk @@ -14,13 +14,13 @@ LOCAL_SRC_FILES:= $(addprefix ../,$(queue2_LOCAL_SRC_FILES_BASE)) \ LOCAL_SHARED_LIBRARIES := \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 \ - libgstpbutils-0.10 + libgstpbutils-0.11 LOCAL_MODULE:= libgstqueue2 @@ -30,7 +30,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/.. \ $(LOCAL_PATH) \ $(LOCAL_PATH)/gst/playback \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include @@ -46,7 +46,7 @@ LOCAL_CFLAGS := -DHAVE_CONFIG_H # LOCAL_PRELINK_MODULE := false -#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.10 -LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.10 +#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.11 +LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.11 include $(BUILD_SHARED_LIBRARY) diff --git a/android/riff.mk b/android/riff.mk index bae94a7..c557cb2 100644 --- a/android/riff.mk +++ b/android/riff.mk @@ -1,7 +1,7 @@ LOCAL_PATH:= $(call my-dir) #---------------------------------------- # include -gst_riffs_COPY_HEADERS_TO := gstreamer-0.10/gst/riff +gst_riffs_COPY_HEADERS_TO := gstreamer-0.11/gst/riff gst_riffs_COPY_HEADERS := \ ../gst-libs/gst/riff/riff-ids.h \ ../gst-libs/gst/riff/riff-media.h \ @@ -19,17 +19,17 @@ riff_LOCAL_SRC_FILES:= \ LOCAL_SRC_FILES:= $(addprefix ../,$(riff_LOCAL_SRC_FILES)) LOCAL_SHARED_LIBRARIES := \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 \ - libgsttag-0.10 \ - libgstaudio-0.10 + libgsttag-0.11 \ + libgstaudio-0.11 -LOCAL_MODULE:= libgstriff-0.10 +LOCAL_MODULE:= libgstriff-0.11 LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/../gst-libs/gst/riff \ @@ -37,7 +37,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/.. \ $(LOCAL_PATH) \ $(LOCAL_PATH)/gst/tcp \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include diff --git a/android/rtp.mk b/android/rtp.mk index 7a8a8bc..573e846 100644 --- a/android/rtp.mk +++ b/android/rtp.mk @@ -1,7 +1,7 @@ LOCAL_PATH:= $(call my-dir) #---------------------------------------- # include -gst_rtp_COPY_HEADERS_TO := gstreamer-0.10/gst/rtp +gst_rtp_COPY_HEADERS_TO := gstreamer-0.11/gst/rtp gst_rtp_COPY_HEADERS := \ ../gst-libs/gst/rtp/gstbasertpaudiopayload.h \ ../gst-libs/gst/rtp/gstbasertpdepayload.h \ @@ -26,14 +26,14 @@ LOCAL_SRC_FILES:= $(addprefix ../,$(rtp_LOCAL_SRC_FILES)) LOCAL_SHARED_LIBRARIES := \ libdl \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 -LOCAL_MODULE:= libgstrtp-0.10 +LOCAL_MODULE:= libgstrtp-0.11 LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/../gst-libs/gst/rtp \ @@ -41,7 +41,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/../ \ $(LOCAL_PATH) \ $(LOCAL_PATH)/gst/tcp \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include diff --git a/android/rtsp.mk b/android/rtsp.mk index 7f628e3..cb14ca3 100644 --- a/android/rtsp.mk +++ b/android/rtsp.mk @@ -1,7 +1,7 @@ LOCAL_PATH:= $(call my-dir) #---------------------------------------- # include -gst_rtsp_COPY_HEADERS_TO := gstreamer-0.10/gst/rtsp +gst_rtsp_COPY_HEADERS_TO := gstreamer-0.11/gst/rtsp gst_rtsp_COPY_HEADERS_BASE := \ gst-libs/gst/rtsp/gstrtspbase64.h \ gst-libs/gst/rtsp/gstrtspdefs.h \ @@ -38,14 +38,14 @@ LOCAL_SRC_FILES:= $(addprefix ../,$(rtsp_LOCAL_SRC_FILES_BASE)) \ $(addprefix ../android/,$(rtsp_LOCAL_SRC_FILES_ANDROID)) LOCAL_SHARED_LIBRARIES := \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 -LOCAL_MODULE:= libgstrtsp-0.10 +LOCAL_MODULE:= libgstrtsp-0.11 LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/../gst-libs/gst/rtsp \ @@ -53,7 +53,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/.. \ $(LOCAL_PATH) \ $(LOCAL_PATH)/gst-libs/gst/rtsp \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include diff --git a/android/sdp.mk b/android/sdp.mk index ae68026..ced65da 100644 --- a/android/sdp.mk +++ b/android/sdp.mk @@ -1,7 +1,7 @@ LOCAL_PATH:= $(call my-dir) #---------------------------------------- # include -gst_sdp_COPY_HEADERS_TO := gstreamer-0.10/gst/sdp +gst_sdp_COPY_HEADERS_TO := gstreamer-0.11/gst/sdp gst_sdp_COPY_HEADERS := \ ../gst-libs/gst/sdp/gstsdp.h \ ../gst-libs/gst/sdp/gstsdpmessage.h @@ -16,14 +16,14 @@ sdp_LOCAL_SRC_FILES:= \ LOCAL_SRC_FILES:= $(addprefix ../,$(sdp_LOCAL_SRC_FILES)) LOCAL_SHARED_LIBRARIES := \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 -LOCAL_MODULE:= libgstsdp-0.10 +LOCAL_MODULE:= libgstsdp-0.11 LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/../gst-libs/gst/sdp \ @@ -31,7 +31,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/.. \ $(LOCAL_PATH) \ $(LOCAL_PATH)/gst/tcp \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include diff --git a/android/tag.mk b/android/tag.mk index c0c1030..8c5743f 100644 --- a/android/tag.mk +++ b/android/tag.mk @@ -1,7 +1,7 @@ LOCAL_PATH:= $(call my-dir) #---------------------------------------- # include -gst_tag_COPY_HEADERS_TO := gstreamer-0.10/gst/tag +gst_tag_COPY_HEADERS_TO := gstreamer-0.11/gst/tag gst_tag_COPY_HEADERS := \ ../gst-libs/gst/tag/gsttagdemux.h \ ../gst-libs/gst/tag/tag.h @@ -20,21 +20,21 @@ tag_LOCAL_SRC_FILES:= \ LOCAL_SRC_FILES:= $(addprefix ../,$(tag_LOCAL_SRC_FILES)) LOCAL_SHARED_LIBRARIES := \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 -LOCAL_MODULE:= libgsttag-0.10 +LOCAL_MODULE:= libgsttag-0.11 LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/../gst/tag \ $(LOCAL_PATH)/../gst-libs \ $(LOCAL_PATH)/.. \ $(LOCAL_PATH) \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include diff --git a/android/tcp.mk b/android/tcp.mk index 29fe211..ce0b619 100644 --- a/android/tcp.mk +++ b/android/tcp.mk @@ -20,13 +20,13 @@ LOCAL_SRC_FILES:= $(addprefix ../,$(tcp_LOCAL_SRC_FILES_BASE)) \ $(addprefix ../android/,$(tcp_LOCAL_SRC_FILES_ANDROID)) LOCAL_SHARED_LIBRARIES := \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 \ - libgstdataprotocol-0.10 + libgstdataprotocol-0.11 LOCAL_MODULE:= libgsttcp @@ -36,7 +36,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/.. \ $(LOCAL_PATH) \ $(LOCAL_PATH)/gst/tcp \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include @@ -52,7 +52,7 @@ LOCAL_CFLAGS := -DHAVE_CONFIG_H -DGSTREAMER_BUILT_FOR_ANDROID # LOCAL_PRELINK_MODULE := false -#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.10 -LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.10 +#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.11 +LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.11 include $(BUILD_SHARED_LIBRARY) diff --git a/android/typefindfunctions.mk b/android/typefindfunctions.mk index cb660b9..eb49a9d 100644 --- a/android/typefindfunctions.mk +++ b/android/typefindfunctions.mk @@ -10,8 +10,8 @@ typefindfunctions_LOCAL_SRC_FILES:= \ LOCAL_SRC_FILES:= $(addprefix ../,$(typefindfunctions_LOCAL_SRC_FILES)) LOCAL_SHARED_LIBRARIES := \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ @@ -24,7 +24,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/../gst-libs \ $(LOCAL_PATH)/.. \ $(LOCAL_PATH) \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include @@ -41,7 +41,7 @@ LOCAL_CFLAGS := -DHAVE_CONFIG_H -DGSTREAMER_BUILT_FOR_ANDROID # LOCAL_PRELINK_MODULE := false -#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.10 -LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.10 +#It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.11 +LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.11 include $(BUILD_SHARED_LIBRARY) diff --git a/android/video.mk b/android/video.mk index f03ec55..15093d5 100644 --- a/android/video.mk +++ b/android/video.mk @@ -1,7 +1,7 @@ LOCAL_PATH:= $(call my-dir) #---------------------------------------- # include -gst_video_COPY_HEADERS_TO := gstreamer-0.10/gst/video +gst_video_COPY_HEADERS_TO := gstreamer-0.11/gst/video gst_video_COPY_HEADERS_BASE := \ gst-libs/gst/video/gstvideofilter.h \ gst-libs/gst/video/gstvideosink.h \ @@ -28,14 +28,14 @@ LOCAL_SRC_FILES:= $(addprefix ../,$(video_LOCAL_SRC_FILES_BASE)) \ $(addprefix ../android/,$(video_LOCAL_SRC_FILES_ANDROID)) LOCAL_SHARED_LIBRARIES := \ - libgstreamer-0.10 \ - libgstbase-0.10 \ + libgstreamer-0.11 \ + libgstbase-0.11 \ libglib-2.0 \ libgthread-2.0 \ libgmodule-2.0 \ libgobject-2.0 -LOCAL_MODULE:= libgstvideo-0.10 +LOCAL_MODULE:= libgstvideo-0.11 LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/../gst-libs/gst/video \ @@ -43,7 +43,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/.. \ $(LOCAL_PATH) \ $(LOCAL_PATH)/gst-libs/gst/video \ - $(TARGET_OUT_HEADERS)/gstreamer-0.10 \ + $(TARGET_OUT_HEADERS)/gstreamer-0.11 \ $(TARGET_OUT_HEADERS)/glib-2.0 \ $(TARGET_OUT_HEADERS)/glib-2.0/glib \ external/libxml2/include diff --git a/configure.ac b/configure.ac index 5b08865..f33b979 100644 --- a/configure.ac +++ b/configure.ac @@ -5,7 +5,7 @@ dnl please read gstreamer/docs/random/autotools before changing this file dnl initialize autoconf dnl releases only do -Wall, git and prerelease does -Werror too dnl use a three digit version number for releases, and four for git/prerelease -AC_INIT(GStreamer Base Plug-ins, 0.10.32.1, +AC_INIT(GStreamer Base Plug-ins, 0.11.0.1, http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer, gst-plugins-base) @@ -40,7 +40,7 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])], dnl our libraries and install dirs use major.minor as a version GST_MAJORMINOR=$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR dnl we override it here if we need to for the release candidate of new series -GST_MAJORMINOR=0.10 +GST_MAJORMINOR=0.11 AC_SUBST(GST_MAJORMINOR) dnl CURRENT, REVISION, AGE @@ -60,7 +60,7 @@ AC_LIBTOOL_WIN32_DLL AM_PROG_LIBTOOL dnl *** required versions of GStreamer stuff *** -GST_REQ=0.10.32.1 +GST_REQ=0.11.0 dnl *** autotools stuff **** @@ -437,7 +437,7 @@ AG_GST_CHECK_PLUGIN(volume) dnl check for gstreamer core features (subsystems) dnl FIXME: this assumes srcdir == builddir for uninstalled setups -GST_CONFIGPATH=`$PKG_CONFIG --variable=includedir gstreamer-0.10`"/gst/gstconfig.h" +GST_CONFIGPATH=`$PKG_CONFIG --variable=includedir gstreamer-0.11`"/gst/gstconfig.h" AG_GST_PARSE_SUBSYSTEM_DISABLES($GST_CONFIGPATH) AM_CONDITIONAL(USE_XML, test $GST_DISABLE_XML != "1") @@ -1058,7 +1058,7 @@ sed \ -e "s/.* PACKAGE_STRING$/#define PACKAGE_STRING \"$PACKAGE_STRING\"/" \ -e 's/.* PACKAGE_TARNAME$/#define PACKAGE_TARNAME "'$PACKAGE_TARNAME'"/' \ -e 's/.* PACKAGE_VERSION$/#define PACKAGE_VERSION "'$PACKAGE_VERSION'"/' \ - -e 's/.* PLUGINDIR$/#ifdef _DEBUG\n# define PLUGINDIR PREFIX "\\\\debug\\\\lib\\\\gstreamer-0.10"\n#else\n# define PLUGINDIR PREFIX "\\\\lib\\\\gstreamer-0.10"\n#endif/' \ + -e 's/.* PLUGINDIR$/#ifdef _DEBUG\n# define PLUGINDIR PREFIX "\\\\debug\\\\lib\\\\gstreamer-0.11"\n#else\n# define PLUGINDIR PREFIX "\\\\lib\\\\gstreamer-0.11"\n#endif/' \ -e 's/.* USE_BINARY_REGISTRY$/#define USE_BINARY_REGISTRY/' \ -e 's/.* VERSION$/#define VERSION "'$VERSION'"/' \ -e "s/.* DEFAULT_AUDIOSINK$/#define DEFAULT_AUDIOSINK \"directsoundsink\"/" \ diff --git a/ext/alsa/gstalsadeviceprobe.c b/ext/alsa/gstalsadeviceprobe.c index 83596a3..97d5f5e 100644 --- a/ext/alsa/gstalsadeviceprobe.c +++ b/ext/alsa/gstalsadeviceprobe.c @@ -26,15 +26,15 @@ #include "gstalsadeviceprobe.h" #include "gst/interfaces/propertyprobe.h" +G_LOCK_DEFINE_STATIC (probe_lock); + static const GList * gst_alsa_device_property_probe_get_properties (GstPropertyProbe * probe) { GObjectClass *klass = G_OBJECT_GET_CLASS (probe); static GList *list = NULL; - /* well, not perfect, but better than no locking at all. - * In the worst case we leak a list node, so who cares? */ - GST_CLASS_LOCK (GST_OBJECT_CLASS (klass)); + G_LOCK (probe_lock); if (!list) { GParamSpec *pspec; @@ -43,7 +43,7 @@ gst_alsa_device_property_probe_get_properties (GstPropertyProbe * probe) list = g_list_append (NULL, pspec); } - GST_CLASS_UNLOCK (GST_OBJECT_CLASS (klass)); + G_UNLOCK (probe_lock); return list; } diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index c011665..b27a9a7 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -1157,8 +1157,7 @@ gst_ogg_chain_new_stream (GstOggChain * chain, glong serialno) ret = g_object_new (GST_TYPE_OGG_PAD, NULL); /* we own this one */ - gst_object_ref (ret); - gst_object_sink (ret); + gst_object_ref_sink (ret); GST_PAD_DIRECTION (ret) = GST_PAD_SRC; gst_ogg_pad_mark_discont (ret); diff --git a/gst-libs/gst/app/Makefile.am b/gst-libs/gst/app/Makefile.am index cf2c852..1064239 100644 --- a/gst-libs/gst/app/Makefile.am +++ b/gst-libs/gst/app/Makefile.am @@ -47,15 +47,15 @@ GstApp-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstapp-@GST_MAJORMINOR@ $(gir_cincludes) \ -I$(top_srcdir)/gst-libs \ -I$(top_builddir)/gst-libs \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \ - --library=libgstapp-0.10.la \ - --include=Gst-0.10 \ - --include=GstBase-0.10 \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-`@GST_MAJORMINOR@ \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-`@GST_MAJORMINOR@ \ + --library=libgstapp-@GST_MAJORMINOR@.la \ + --include=Gst-@GST_MAJORMINOR@ \ + --include=GstBase-@GST_MAJORMINOR@ \ --libtool="$(top_builddir)/libtool" \ - --pkg gstreamer-0.10 \ - --pkg gstreamer-base-0.10 \ - --pkg-export gstreamer-app-0.10 \ + --pkg gstreamer-@GST_MAJORMINOR@ \ + --pkg gstreamer-base-@GST_MAJORMINOR@ \ + --pkg-export gstreamer-app-@GST_MAJORMINOR@ \ --output $@ \ $(gir_headers) \ $(gir_sources) @@ -74,8 +74,8 @@ typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib) $(INTROSPECTION_COMPILER) \ --includedir=$(srcdir) \ --includedir=$(builddir) \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-`@GST_MAJORMINOR@ \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-`@GST_MAJORMINOR@ \ $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F) CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA) diff --git a/gst-libs/gst/audio/Makefile.am b/gst-libs/gst/audio/Makefile.am index b449e24..0a28217 100644 --- a/gst-libs/gst/audio/Makefile.am +++ b/gst-libs/gst/audio/Makefile.am @@ -76,17 +76,17 @@ GstAudio-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstaudio-@GST_MAJORMI -I$(top_builddir)/gst-libs \ $(gir_cincludes) \ --add-include-path=$(builddir)/../interfaces \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \ - --library=libgstaudio-0.10.la \ - --include=Gst-0.10 \ - --include=GstBase-0.10 \ - --include=GstInterfaces-0.10 \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \ + --library=libgstaudio-@GST_MAJORMINOR@.la \ + --include=Gst-@GST_MAJORMINOR@ \ + --include=GstBase-@GST_MAJORMINOR@ \ + --include=GstInterfaces-@GST_MAJORMINOR@ \ --libtool="$(top_builddir)/libtool" \ - --pkg gstreamer-0.10 \ - --pkg gstreamer-base-0.10 \ - --pkg gstreamer-interfaces-0.10 \ - --pkg-export gstreamer-audio-0.10 \ + --pkg gstreamer-@GST_MAJORMINOR@ \ + --pkg gstreamer-base-@GST_MAJORMINOR@ \ + --pkg gstreamer-interfaces-@GST_MAJORMINOR@ \ + --pkg-export gstreamer-audio-@GST_MAJORMINOR@ \ --output $@ \ $(gir_headers) \ $(gir_sources) @@ -106,8 +106,8 @@ typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib) --includedir=$(srcdir) \ --includedir=$(builddir) \ --includedir=$(builddir)/../interfaces \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F) CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA) diff --git a/gst-libs/gst/cdda/Makefile.am b/gst-libs/gst/cdda/Makefile.am index 5985c84..09f334a 100644 --- a/gst-libs/gst/cdda/Makefile.am +++ b/gst-libs/gst/cdda/Makefile.am @@ -29,17 +29,17 @@ GstCdda-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstcdda-@GST_MAJORMINO --strip-prefix=Gst \ $(gir_cincludes) \ --add-include-path=$(builddir)/../tag \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \ - --library=libgstcdda-0.10.la \ - --include=Gst-0.10 \ - --include=GstBase-0.10 \ - --include=GstTag-0.10 \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \ + --library=libgstcdda-@GST_MAJORMINOR@.la \ + --include=Gst-@GST_MAJORMINOR@ \ + --include=GstBase-@GST_MAJORMINOR@ \ + --include=GstTag-@GST_MAJORMINOR@ \ --libtool="$(top_builddir)/libtool" \ - --pkg gstreamer-0.10 \ - --pkg gstreamer-base-0.10 \ - --pkg gstreamer-tag-0.10 \ - --pkg-export gstreamer-cdda-0.10 \ + --pkg gstreamer-@GST_MAJORMINOR@ \ + --pkg gstreamer-base-@GST_MAJORMINOR@ \ + --pkg gstreamer-tag-@GST_MAJORMINOR@ \ + --pkg-export gstreamer-cdda-@GST_MAJORMINOR@ \ --output $@ \ $(gir_headers) \ $(gir_sources) @@ -59,8 +59,8 @@ typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib) --includedir=$(srcdir) \ --includedir=$(builddir) \ --includedir=$(builddir)/../tag \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \ $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F) CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA) diff --git a/gst-libs/gst/fft/Makefile.am b/gst-libs/gst/fft/Makefile.am index bf14e55..7e84eae 100644 --- a/gst-libs/gst/fft/Makefile.am +++ b/gst-libs/gst/fft/Makefile.am @@ -57,12 +57,12 @@ GstFft-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstfft-@GST_MAJORMINOR@ --nsversion=@GST_MAJORMINOR@ \ --strip-prefix=Gst \ $(gir_cincludes) \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ - --library=libgstfft-0.10.la \ - --include=Gst-0.10 \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ + --library=libgstfft-@GST_MAJORMINOR@.la \ + --include=Gst-@GST_MAJORMINOR@ \ --libtool="$(top_builddir)/libtool" \ - --pkg gstreamer-0.10 \ - --pkg-export gstreamer-fft-0.10 \ + --pkg gstreamer-@GST_MAJORMINOR@ \ + --pkg-export gstreamer-fft-@GST_MAJORMINOR@ \ --output $@ \ $(gir_headers) \ $(gir_sources) @@ -81,7 +81,7 @@ typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib) $(INTROSPECTION_COMPILER) \ --includedir=$(srcdir) \ --includedir=$(builddir) \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F) CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA) diff --git a/gst-libs/gst/interfaces/Makefile.am b/gst-libs/gst/interfaces/Makefile.am index eca6a80..f462211 100644 --- a/gst-libs/gst/interfaces/Makefile.am +++ b/gst-libs/gst/interfaces/Makefile.am @@ -88,12 +88,12 @@ GstInterfaces-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstinterfaces-@G $(gir_cincludes) \ -I$(top_srcdir)/gst-libs \ -I$(top_builddir)/gst-libs \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ - --library=libgstinterfaces-0.10.la \ - --include=Gst-0.10 \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ + --library=libgstinterfaces-@GST_MAJORMINOR@.la \ + --include=Gst-@GST_MAJORMINOR@ \ --libtool="$(top_builddir)/libtool" \ - --pkg gstreamer-0.10 \ - --pkg-export gstreamer-interfaces-0.10 \ + --pkg gstreamer-@GST_MAJORMINOR@ \ + --pkg-export gstreamer-interfaces-@GST_MAJORMINOR@ \ --output $@ \ $(gir_headers) \ $(gir_sources) @@ -112,7 +112,7 @@ typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib) $(INTROSPECTION_COMPILER) \ --includedir=$(srcdir) \ --includedir=$(builddir) \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F) CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA) diff --git a/gst-libs/gst/netbuffer/Makefile.am b/gst-libs/gst/netbuffer/Makefile.am index 9f70a39..fced57c 100644 --- a/gst-libs/gst/netbuffer/Makefile.am +++ b/gst-libs/gst/netbuffer/Makefile.am @@ -22,12 +22,12 @@ GstNetbuffer-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstnetbuffer-@GST --nsversion=@GST_MAJORMINOR@ \ --strip-prefix=Gst \ $(gir_cincludes) \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ - --library=libgstnetbuffer-0.10.la \ - --include=Gst-0.10 \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ + --library=libgstnetbuffer-@GST_MAJORMINOR@.la \ + --include=Gst-@GST_MAJORMINOR@ \ --libtool="$(top_builddir)/libtool" \ - --pkg gstreamer-0.10 \ - --pkg-export gstreamer-netbuffer-0.10 \ + --pkg gstreamer-@GST_MAJORMINOR@ \ + --pkg-export gstreamer-netbuffer-@GST_MAJORMINOR@ \ --output $@ \ $(gir_headers) \ $(gir_sources) @@ -46,7 +46,7 @@ typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib) $(INTROSPECTION_COMPILER) \ --includedir=$(srcdir) \ --includedir=$(builddir) \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F) CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA) diff --git a/gst-libs/gst/pbutils/Makefile.am b/gst-libs/gst/pbutils/Makefile.am index 2a129c9..e26ef9b 100644 --- a/gst-libs/gst/pbutils/Makefile.am +++ b/gst-libs/gst/pbutils/Makefile.am @@ -83,13 +83,13 @@ GstPbutils-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstpbutils-@GST_MAJ -I$(top_srcdir)/gst-libs \ -I$(top_builddir)/gst-libs \ --add-include-path=$(srcdir)/../video \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ - --library=libgstpbutils-0.10.la \ - --library-path=`$(PKG_CONFIG) --variable=libdir gstreamer-0.10` \ - --library=gstreamer-0.10 \ - --include=Gst-0.10 \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ + --library=libgstpbutils-@GST_MAJORMINOR@.la \ + --library-path=`$(PKG_CONFIG) --variable=libdir gstreamer-@GST_MAJORMINOR@` \ + --library=gstreamer-@GST_MAJORMINOR@ \ + --include=Gst-@GST_MAJORMINOR@ \ --libtool="$(top_builddir)/libtool" \ - --pkg gstreamer-0.10 \ + --pkg gstreamer-@GST_MAJORMINOR@ \ --pkg gstreamer-video-@GST_MAJORMINOR@ \ --pkg-export gstreamer-pbutils-@GST_MAJORMINOR@ \ --add-init-section="gst_init(NULL,NULL);" \ @@ -112,7 +112,7 @@ typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib) --includedir=$(srcdir) \ --includedir=$(srcdir)/../video \ --includedir=$(builddir) \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F) CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA) diff --git a/gst-libs/gst/riff/Makefile.am b/gst-libs/gst/riff/Makefile.am index 5da50d6..0bde2b0 100644 --- a/gst-libs/gst/riff/Makefile.am +++ b/gst-libs/gst/riff/Makefile.am @@ -35,18 +35,18 @@ GstRiff-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstriff-@GST_MAJORMINO --add-include-path=$(builddir)/../tag \ --add-include-path=$(builddir)/../audio \ --add-include-path=$(builddir)/../interfaces \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \ - --library=libgstriff-0.10.la \ - --include=GstAudio-0.10 \ - --include=GstTag-0.10 \ - --include=Gst-0.10 \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \ + --library=libgstriff-@GST_MAJORMINOR@.la \ + --include=GstAudio-@GST_MAJORMINOR@ \ + --include=GstTag-@GST_MAJORMINOR@ \ + --include=Gst-@GST_MAJORMINOR@ \ --libtool="$(top_builddir)/libtool" \ - --pkg gstreamer-0.10 \ - --pkg gstreamer-tag-0.10 \ - --pkg gstreamer-audio-0.10 \ - --pkg gstreamer-interfaces-0.10 \ - --pkg-export gstreamer-riff-0.10 \ + --pkg gstreamer-@GST_MAJORMINOR@ \ + --pkg gstreamer-tag-@GST_MAJORMINOR@ \ + --pkg gstreamer-audio-@GST_MAJORMINOR@ \ + --pkg gstreamer-interfaces-@GST_MAJORMINOR@ \ + --pkg-export gstreamer-riff-@GST_MAJORMINOR@ \ --output $@ \ $(gir_headers) \ $(gir_sources) @@ -68,8 +68,8 @@ typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib) --includedir=$(builddir)/../tag \ --includedir=$(builddir)/../audio \ --includedir=$(builddir)/../interfaces \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \ $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F) CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA) diff --git a/gst-libs/gst/rtp/Makefile.am b/gst-libs/gst/rtp/Makefile.am index 36a423a..130f2c9 100644 --- a/gst-libs/gst/rtp/Makefile.am +++ b/gst-libs/gst/rtp/Makefile.am @@ -34,15 +34,15 @@ GstRtp-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstrtp-@GST_MAJORMINOR@ --strip-prefix=Gst \ $(gir_cincludes) \ -I$(top_srcdir)/gst-libs \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \ - --library=libgstrtp-0.10.la \ - --include=Gst-0.10 \ - --include=GstBase-0.10 \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \ + --library=libgstrtp-@GST_MAJORMINOR@.la \ + --include=Gst-@GST_MAJORMINOR@ \ + --include=GstBase-@GST_MAJORMINOR@ \ --libtool="$(top_builddir)/libtool" \ - --pkg gstreamer-0.10 \ - --pkg gstreamer-base-0.10 \ - --pkg-export gstreamer-rtp-0.10 \ + --pkg gstreamer-@GST_MAJORMINOR@ \ + --pkg gstreamer-base-@GST_MAJORMINOR@ \ + --pkg-export gstreamer-rtp-@GST_MAJORMINOR@ \ --output $@ \ $(gir_headers) \ $(gir_sources) @@ -61,8 +61,8 @@ typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib) $(INTROSPECTION_COMPILER) \ --includedir=$(srcdir) \ --includedir=$(builddir) \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \ $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F) CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA) diff --git a/gst-libs/gst/rtsp/Makefile.am b/gst-libs/gst/rtsp/Makefile.am index a26b527..4ed4742 100644 --- a/gst-libs/gst/rtsp/Makefile.am +++ b/gst-libs/gst/rtsp/Makefile.am @@ -68,14 +68,14 @@ GstRtsp-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstrtsp-@GST_MAJORMINO -I$(top_builddir)/gst-libs \ -I$(top_srcdir)/gst-libs \ --add-include-path=$(builddir)/../sdp \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ - --library=libgstrtsp-0.10.la \ - --include=Gst-0.10 \ - --include=GstSdp-0.10 \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ + --library=libgstrtsp-@GST_MAJORMINOR@.la \ + --include=Gst-@GST_MAJORMINOR@ \ + --include=GstSdp-@GST_MAJORMINOR@ \ --libtool="$(top_builddir)/libtool" \ - --pkg gstreamer-0.10 \ - --pkg gstreamer-sdp-0.10 \ - --pkg-export gstreamer-rtsp-0.10 \ + --pkg gstreamer-@GST_MAJORMINOR@ \ + --pkg gstreamer-sdp-@GST_MAJORMINOR@ \ + --pkg-export gstreamer-rtsp-@GST_MAJORMINOR@ \ --output $@ \ $(gir_headers) \ $(gir_sources) @@ -95,7 +95,7 @@ typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib) --includedir=$(srcdir) \ --includedir=$(builddir) \ --includedir=$(builddir)/../sdp \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F) CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA) diff --git a/gst-libs/gst/sdp/Makefile.am b/gst-libs/gst/sdp/Makefile.am index 55480eb..6c8dae2 100644 --- a/gst-libs/gst/sdp/Makefile.am +++ b/gst-libs/gst/sdp/Makefile.am @@ -25,12 +25,12 @@ GstSdp-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstsdp-@GST_MAJORMINOR@ --strip-prefix=Gst \ $(gir_cincludes) \ -I$(top_srcdir)/gst-libs \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ - --library=libgstsdp-0.10.la \ - --include=Gst-0.10 \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ + --library=libgstsdp-@GST_MAJORMINOR@.la \ + --include=Gst-@GST_MAJORMINOR@ \ --libtool="$(top_builddir)/libtool" \ - --pkg gstreamer-0.10 \ - --pkg-export gstreamer-sdp-0.10 \ + --pkg gstreamer-@GST_MAJORMINOR@ \ + --pkg-export gstreamer-sdp-@GST_MAJORMINOR@ \ --output $@ \ $(gir_headers) \ $(gir_sources) @@ -49,7 +49,7 @@ typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib) $(INTROSPECTION_COMPILER) \ --includedir=$(srcdir) \ --includedir=$(builddir) \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F) CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA) diff --git a/gst-libs/gst/tag/Makefile.am b/gst-libs/gst/tag/Makefile.am index 15263dd..9dce438 100644 --- a/gst-libs/gst/tag/Makefile.am +++ b/gst-libs/gst/tag/Makefile.am @@ -31,15 +31,15 @@ GstTag-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgsttag-@GST_MAJORMINOR@ --nsversion=@GST_MAJORMINOR@ \ --strip-prefix=Gst \ $(gir_cincludes) \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \ - --library=libgsttag-0.10.la \ - --include=Gst-0.10 \ - --include=GstBase-0.10 \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \ + --library=libgsttag-@GST_MAJORMINOR@.la \ + --include=Gst-@GST_MAJORMINOR@ \ + --include=GstBase-@GST_MAJORMINOR@ \ --libtool="$(top_builddir)/libtool" \ - --pkg gstreamer-0.10 \ - --pkg gstreamer-base-0.10 \ - --pkg-export gstreamer-tag-0.10 \ + --pkg gstreamer-@GST_MAJORMINOR@ \ + --pkg gstreamer-base-@GST_MAJORMINOR@ \ + --pkg-export gstreamer-tag-@GST_MAJORMINOR@ \ --output $@ \ $(gir_headers) \ $(gir_sources) @@ -58,8 +58,8 @@ typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib) $(INTROSPECTION_COMPILER) \ --includedir=$(srcdir) \ --includedir=$(builddir) \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \ $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F) CLEANFILES = $(BUILT_GIRSOURCES) $(typelibs_DATA) diff --git a/gst-libs/gst/video/Makefile.am b/gst-libs/gst/video/Makefile.am index 26d5d1b..fd91258 100644 --- a/gst-libs/gst/video/Makefile.am +++ b/gst-libs/gst/video/Makefile.am @@ -45,15 +45,15 @@ GstVideo-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstvideo-@GST_MAJORMI $(gir_cincludes) \ -I$(top_srcdir)/gst-libs \ -I$(top_builddir)/gst-libs \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ - --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \ - --library=libgstvideo-0.10.la \ - --include=Gst-0.10 \ - --include=GstBase-0.10 \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ + --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \ + --library=libgstvideo-@GST_MAJORMINOR@.la \ + --include=Gst-@GST_MAJORMINOR@ \ + --include=GstBase-@GST_MAJORMINOR@ \ --libtool="$(top_builddir)/libtool" \ - --pkg gstreamer-0.10 \ - --pkg gstreamer-base-0.10 \ - --pkg-export gstreamer-video-0.10 \ + --pkg gstreamer-@GST_MAJORMINOR@ \ + --pkg gstreamer-base-@GST_MAJORMINOR@ \ + --pkg-export gstreamer-video-@GST_MAJORMINOR@ \ --output $@ \ $(gir_headers) \ $(gir_sources) @@ -72,8 +72,8 @@ typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib) $(INTROSPECTION_COMPILER) \ --includedir=$(srcdir) \ --includedir=$(builddir) \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \ - --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-0.10` \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \ + --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \ $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F) CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA) diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index 882d53f..f9bdf23 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -3399,8 +3399,7 @@ gst_decode_pad_init (GstDecodePad * pad) pad->blocked = FALSE; pad->exposed = FALSE; pad->drained = FALSE; - gst_object_ref (pad); - gst_object_sink (pad); + gst_object_ref_sink (pad); } static void diff --git a/gst/playback/gstplaybin.c b/gst/playback/gstplaybin.c index 57b5dbe..3aecd7c 100644 --- a/gst/playback/gstplaybin.c +++ b/gst/playback/gstplaybin.c @@ -638,8 +638,7 @@ gst_play_bin_set_property (GObject * object, guint prop_id, } play_bin->video_sink = g_value_get_object (value); if (play_bin->video_sink != NULL) { - gst_object_ref (play_bin->video_sink); - gst_object_sink (GST_OBJECT_CAST (play_bin->video_sink)); + gst_object_ref_sink (play_bin->video_sink); } /* when changing the videosink, we just remove the * video pipeline from the cache so that it will be @@ -656,8 +655,7 @@ gst_play_bin_set_property (GObject * object, guint prop_id, } play_bin->audio_sink = g_value_get_object (value); if (play_bin->audio_sink != NULL) { - gst_object_ref (play_bin->audio_sink); - gst_object_sink (GST_OBJECT_CAST (play_bin->audio_sink)); + gst_object_ref_sink (play_bin->audio_sink); } g_hash_table_remove (play_bin->cache, "abin"); break; @@ -668,8 +666,7 @@ gst_play_bin_set_property (GObject * object, guint prop_id, /* Take ownership */ if (pending_visualisation) { - gst_object_ref (pending_visualisation); - gst_object_sink (pending_visualisation); + gst_object_ref_sink (pending_visualisation); } /* Do we already have a visualisation change pending ? */ diff --git a/gst/tcp/gstmultifdsink.c b/gst/tcp/gstmultifdsink.c index 4072eef..9532c83 100644 --- a/gst/tcp/gstmultifdsink.c +++ b/gst/tcp/gstmultifdsink.c @@ -153,7 +153,6 @@ enum /* this is really arbitrarily chosen */ -#define DEFAULT_PROTOCOL GST_TCP_PROTOCOL_NONE #define DEFAULT_MODE 1 #define DEFAULT_BUFFERS_MAX -1 #define DEFAULT_BUFFERS_SOFT_MAX -1 @@ -178,7 +177,6 @@ enum enum { PROP_0, - PROP_PROTOCOL, PROP_MODE, PROP_BUFFERS_QUEUED, PROP_BYTES_QUEUED, @@ -380,12 +378,6 @@ gst_multi_fd_sink_class_init (GstMultiFdSinkClass * klass) gobject_class->get_property = gst_multi_fd_sink_get_property; gobject_class->finalize = gst_multi_fd_sink_finalize; - g_object_class_install_property (gobject_class, PROP_PROTOCOL, - g_param_spec_enum ("protocol", "Protocol", "The protocol to wrap data in" - ". GDP protocol here is deprecated. Please use gdppay element.", - GST_TYPE_TCP_PROTOCOL, DEFAULT_PROTOCOL, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - /** * GstMultiFdSink::mode * @@ -691,7 +683,6 @@ gst_multi_fd_sink_init (GstMultiFdSink * this, GstMultiFdSinkClass * klass) { GST_OBJECT_FLAG_UNSET (this, GST_MULTI_FD_SINK_OPEN); - this->protocol = DEFAULT_PROTOCOL; this->mode = DEFAULT_MODE; CLIENTS_LOCK_INIT (this); @@ -1291,60 +1282,6 @@ ioctl_failed: } } -/* Queue raw data for this client, creating a new buffer. - * This takes ownership of the data by - * setting it as GST_BUFFER_MALLOCDATA() on the created buffer so - * be sure to pass g_free()-able @data. - */ -static gboolean -gst_multi_fd_sink_client_queue_data (GstMultiFdSink * sink, - GstTCPClient * client, gchar * data, gint len) -{ - GstBuffer *buf; - - buf = gst_buffer_new (); - GST_BUFFER_DATA (buf) = (guint8 *) data; - GST_BUFFER_MALLOCDATA (buf) = (guint8 *) data; - GST_BUFFER_SIZE (buf) = len; - - GST_LOG_OBJECT (sink, "[fd %5d] queueing data of length %d", - client->fd.fd, len); - - client->sending = g_slist_append (client->sending, buf); - - return TRUE; -} - -/* GDP-encode given caps and queue them for sending */ -static gboolean -gst_multi_fd_sink_client_queue_caps (GstMultiFdSink * sink, - GstTCPClient * client, const GstCaps * caps) -{ - guint8 *header; - guint8 *payload; - guint length; - gchar *string; - - g_return_val_if_fail (caps != NULL, FALSE); - - string = gst_caps_to_string (caps); - GST_DEBUG_OBJECT (sink, "[fd %5d] Queueing caps %s through GDP", - client->fd.fd, string); - g_free (string); - - if (!gst_dp_packet_from_caps (caps, sink->header_flags, &length, &header, - &payload)) { - GST_DEBUG_OBJECT (sink, "Could not create GDP packet from caps"); - return FALSE; - } - gst_multi_fd_sink_client_queue_data (sink, client, (gchar *) header, length); - - length = gst_dp_header_payload_length (header); - gst_multi_fd_sink_client_queue_data (sink, client, (gchar *) payload, length); - - return TRUE; -} - static gboolean is_sync_frame (GstMultiFdSink * sink, GstBuffer * buffer) { @@ -1457,21 +1394,6 @@ gst_multi_fd_sink_client_queue_buffer (GstMultiFdSink * sink, client->fd.fd, GST_BUFFER_SIZE (buffer)); gst_buffer_ref (buffer); - if (sink->protocol == GST_TCP_PROTOCOL_GDP) { - guint8 *header; - guint len; - - if (!gst_dp_header_from_buffer (buffer, sink->header_flags, &len, - &header)) { - GST_DEBUG_OBJECT (sink, - "[fd %5d] could not create header, removing client", - client->fd.fd); - return FALSE; - } - gst_multi_fd_sink_client_queue_data (sink, client, (gchar *) header, - len); - } - client->sending = g_slist_append (client->sending, buffer); } } @@ -1479,18 +1401,6 @@ gst_multi_fd_sink_client_queue_buffer (GstMultiFdSink * sink, gst_caps_unref (caps); caps = NULL; - /* now we can send the buffer, possibly sending a GDP header first */ - if (sink->protocol == GST_TCP_PROTOCOL_GDP) { - guint8 *header; - guint len; - - if (!gst_dp_header_from_buffer (buffer, sink->header_flags, &len, &header)) { - GST_DEBUG_OBJECT (sink, - "[fd %5d] could not create header, removing client", client->fd.fd); - return FALSE; - } - gst_multi_fd_sink_client_queue_data (sink, client, (gchar *) header, len); - } GST_LOG_OBJECT (sink, "[fd %5d] queueing buffer of length %d", client->fd.fd, GST_BUFFER_SIZE (buffer)); @@ -1991,7 +1901,6 @@ gst_multi_fd_sink_handle_client_write (GstMultiFdSink * sink, { int fd = client->fd.fd; gboolean more; - gboolean res; gboolean flushing; GstClockTime now; GTimeVal nowtv; @@ -2001,39 +1910,6 @@ gst_multi_fd_sink_handle_client_write (GstMultiFdSink * sink, flushing = client->status == GST_CLIENT_STATUS_FLUSHING; - /* when using GDP, first check if we have queued caps yet */ - if (sink->protocol == GST_TCP_PROTOCOL_GDP) { - /* don't need to do anything when the client is flushing */ - if (!client->caps_sent && !flushing) { - GstPad *peer; - GstCaps *caps; - - peer = gst_pad_get_peer (GST_BASE_SINK_PAD (sink)); - if (!peer) { - GST_WARNING_OBJECT (sink, "pad has no peer"); - return FALSE; - } - gst_object_unref (peer); - - caps = gst_pad_get_negotiated_caps (GST_BASE_SINK_PAD (sink)); - if (!caps) { - GST_WARNING_OBJECT (sink, "pad caps not yet negotiated"); - return FALSE; - } - - /* queue caps for sending */ - res = gst_multi_fd_sink_client_queue_caps (sink, client, caps); - - gst_caps_unref (caps); - - if (!res) { - GST_DEBUG_OBJECT (sink, "Failed queueing caps, removing client"); - return FALSE; - } - client->caps_sent = TRUE; - } - } - more = TRUE; do { gint maxsize; @@ -2682,9 +2558,6 @@ gst_multi_fd_sink_set_property (GObject * object, guint prop_id, multifdsink = GST_MULTI_FD_SINK (object); switch (prop_id) { - case PROP_PROTOCOL: - multifdsink->protocol = g_value_get_enum (value); - break; case PROP_MODE: multifdsink->mode = g_value_get_enum (value); break; @@ -2753,9 +2626,6 @@ gst_multi_fd_sink_get_property (GObject * object, guint prop_id, GValue * value, multifdsink = GST_MULTI_FD_SINK (object); switch (prop_id) { - case PROP_PROTOCOL: - g_value_set_enum (value, multifdsink->protocol); - break; case PROP_MODE: g_value_set_enum (value, multifdsink->mode); break; diff --git a/gst/tcp/gstmultifdsink.h b/gst/tcp/gstmultifdsink.h index 0ee7888..b0465af 100644 --- a/gst/tcp/gstmultifdsink.h +++ b/gst/tcp/gstmultifdsink.h @@ -153,8 +153,6 @@ typedef struct { gboolean discont; - GstTCPProtocol protocol; - gboolean caps_sent; gboolean new_connection; @@ -208,7 +206,6 @@ struct _GstMultiFdSink { GSList *streamheader; /* GSList of GstBuffers to use as streamheader */ gboolean previous_buffer_in_caps; - GstTCPProtocol protocol; guint mtu; gint qos_dscp; gboolean handle_read; diff --git a/gst/tcp/gsttcp.c b/gst/tcp/gsttcp.c index 894fcb8..2376745 100644 --- a/gst/tcp/gsttcp.c +++ b/gst/tcp/gsttcp.c @@ -466,104 +466,3 @@ payload_validate_error: return GST_FLOW_ERROR; } } - -/* write a GDP header to the socket. Return false if fails. */ -gboolean -gst_tcp_gdp_write_buffer (GstElement * this, int socket, GstBuffer * buffer, - gboolean fatal, const gchar * host, int port) -{ - guint length; - guint8 *header; - size_t wrote; - - if (!gst_dp_header_from_buffer (buffer, 0, &length, &header)) - goto create_error; - - GST_LOG_OBJECT (this, "writing %d bytes for GDP buffer header", length); - wrote = gst_tcp_socket_write (socket, header, length); - g_free (header); - - if (wrote != length) - goto write_error; - - return TRUE; - - /* ERRORS */ -create_error: - { - if (fatal) - GST_ELEMENT_ERROR (this, CORE, TOO_LAZY, (NULL), - ("Could not create GDP header from buffer")); - return FALSE; - } -write_error: - { - if (fatal) - GST_ELEMENT_ERROR (this, RESOURCE, WRITE, - (_("Error while sending data to \"%s:%d\"."), host, port), - ("Only %" G_GSIZE_FORMAT " of %u bytes written: %s", - wrote, GST_BUFFER_SIZE (buffer), g_strerror (errno))); - return FALSE; - } -} - -/* write GDP header and payload to the given socket for the given caps. - * Return false if fails. */ -gboolean -gst_tcp_gdp_write_caps (GstElement * this, int socket, const GstCaps * caps, - gboolean fatal, const char *host, int port) -{ - guint length; - guint8 *header; - guint8 *payload; - size_t wrote; - - if (!gst_dp_packet_from_caps (caps, 0, &length, &header, &payload)) - goto create_error; - - GST_LOG_OBJECT (this, "writing %d bytes for GDP caps header", length); - wrote = gst_tcp_socket_write (socket, header, length); - if (wrote != length) - goto write_header_error; - - length = gst_dp_header_payload_length (header); - g_free (header); - - GST_LOG_OBJECT (this, "writing %d bytes for GDP caps payload", length); - wrote = gst_tcp_socket_write (socket, payload, length); - g_free (payload); - - if (wrote != length) - goto write_payload_error; - - return TRUE; - - /* ERRORS */ -create_error: - { - if (fatal) - GST_ELEMENT_ERROR (this, CORE, TOO_LAZY, (NULL), - ("Could not create GDP packet from caps")); - return FALSE; - } -write_header_error: - { - g_free (header); - g_free (payload); - if (fatal) - GST_ELEMENT_ERROR (this, RESOURCE, WRITE, - (_("Error while sending gdp header data to \"%s:%d\"."), host, port), - ("Only %" G_GSIZE_FORMAT " of %u bytes written: %s", - wrote, length, g_strerror (errno))); - return FALSE; - } -write_payload_error: - { - if (fatal) - GST_ELEMENT_ERROR (this, RESOURCE, WRITE, - (_("Error while sending gdp payload data to \"%s:%d\"."), host, port), - ("Only %" G_GSIZE_FORMAT " of %u bytes written: %s", - wrote, length, g_strerror (errno))); - return FALSE; - } -} diff --git a/gst/tcp/gsttcp.h b/gst/tcp/gsttcp.h index 533c162..64299ef 100644 --- a/gst/tcp/gsttcp.h +++ b/gst/tcp/gsttcp.h @@ -34,26 +34,6 @@ G_BEGIN_DECLS -/** - * GstTCPProtocol: - * @GST_TCP_PROTOCOL_NONE: Raw data transmission - * @GST_TCP_PROTOCOL_GDP: #GstBuffers are wrapped and sent/received using the - * GDP protocol. - * - * This enum is provided by the tcp/multifd elements to configure the format of - * data transmission/reception. - * - * The GDP protocol wraps data buffers in a header that also carries format - * information and timestamps. The None value indicates the data is - * sent/received as-is. In that case, format information and timestamping - * must be transmitted separately, or implicit in the bytestream itself. - */ -typedef enum -{ - GST_TCP_PROTOCOL_NONE, - GST_TCP_PROTOCOL_GDP -} GstTCPProtocol; - gchar * gst_tcp_host_to_ip (GstElement *element, const gchar *host); gint gst_tcp_socket_write (int socket, const void *buf, size_t count); @@ -65,12 +45,6 @@ GstFlowReturn gst_tcp_read_buffer (GstElement * this, int socket, GstPoll * fdse GstFlowReturn gst_tcp_gdp_read_buffer (GstElement * this, int socket, GstPoll * fdset, GstBuffer **buf); GstFlowReturn gst_tcp_gdp_read_caps (GstElement * this, int socket, GstPoll * fdset, GstCaps **caps); -GstEvent * gst_tcp_gdp_read_event (GstElement *elem, int socket, GstPoll * fdset); - -gboolean gst_tcp_gdp_write_buffer (GstElement *elem, int socket, GstBuffer *buffer, gboolean fatal, const gchar *host, int port); -gboolean gst_tcp_gdp_write_event (GstElement *elem, int socket, GstEvent *event, gboolean fatal, const gchar *host, int port); -gboolean gst_tcp_gdp_write_caps (GstElement *elem, int socket, const GstCaps *caps, gboolean fatal, const gchar *host, int port); - G_END_DECLS #endif /* __GST_TCP_HELP_H__ */ diff --git a/gst/tcp/gsttcpclientsink.c b/gst/tcp/gsttcpclientsink.c index ca60578..5c78081 100644 --- a/gst/tcp/gsttcpclientsink.c +++ b/gst/tcp/gsttcpclientsink.c @@ -57,9 +57,7 @@ enum { ARG_0, ARG_HOST, - ARG_PORT, - ARG_PROTOCOL - /* FILL ME */ + ARG_PORT }; static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink", @@ -154,10 +152,6 @@ gst_tcp_client_sink_class_init (GstTCPClientSink * klass) g_param_spec_int ("port", "Port", "The port to send the packets to", 0, TCP_HIGHEST_PORT, TCP_DEFAULT_PORT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - g_object_class_install_property (gobject_class, ARG_PROTOCOL, - g_param_spec_enum ("protocol", "Protocol", "The protocol to wrap data in", - GST_TYPE_TCP_PROTOCOL, GST_TCP_PROTOCOL_NONE, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gstelement_class->change_state = gst_tcp_client_sink_change_state; @@ -174,7 +168,6 @@ gst_tcp_client_sink_init (GstTCPClientSink * this) this->port = TCP_DEFAULT_PORT; this->sock_fd.fd = -1; - this->protocol = GST_TCP_PROTOCOL_NONE; GST_OBJECT_FLAG_UNSET (this, GST_TCP_CLIENT_SINK_OPEN); } @@ -195,41 +188,7 @@ gst_tcp_client_sink_setcaps (GstBaseSink * bsink, GstCaps * caps) sink = GST_TCP_CLIENT_SINK (bsink); - /* write the buffer header if we have one */ - switch (sink->protocol) { - case GST_TCP_PROTOCOL_NONE: - break; - - case GST_TCP_PROTOCOL_GDP: - /* if we haven't send caps yet, send them first */ - if (!sink->caps_sent) { - const GstCaps *caps; - gchar *string; - - caps = GST_PAD_CAPS (GST_PAD_PEER (GST_BASE_SINK_PAD (bsink))); - string = gst_caps_to_string (caps); - GST_DEBUG_OBJECT (sink, "Sending caps %s through GDP", string); - g_free (string); - - if (!gst_tcp_gdp_write_caps (GST_ELEMENT (sink), sink->sock_fd.fd, - caps, TRUE, sink->host, sink->port)) - goto gdp_write_error; - - sink->caps_sent = TRUE; - } - break; - default: - g_warning ("Unhandled protocol type"); - break; - } - return TRUE; - - /* ERRORS */ -gdp_write_error: - { - return FALSE; - } } static GstFlowReturn @@ -248,20 +207,6 @@ gst_tcp_client_sink_render (GstBaseSink * bsink, GstBuffer * buf) GST_LOG_OBJECT (sink, "writing %d bytes for buffer data", size); - /* write the buffer header if we have one */ - switch (sink->protocol) { - case GST_TCP_PROTOCOL_NONE: - break; - case GST_TCP_PROTOCOL_GDP: - GST_LOG_OBJECT (sink, "Sending buffer header through GDP"); - if (!gst_tcp_gdp_write_buffer (GST_ELEMENT (sink), sink->sock_fd.fd, buf, - TRUE, sink->host, sink->port)) - goto gdp_write_error; - break; - default: - break; - } - /* write buffer data */ wrote = gst_tcp_socket_write (sink->sock_fd.fd, GST_BUFFER_DATA (buf), size); @@ -273,10 +218,6 @@ gst_tcp_client_sink_render (GstBaseSink * bsink, GstBuffer * buf) return GST_FLOW_OK; /* ERRORS */ -gdp_write_error: - { - return FALSE; - } write_error: { GST_ELEMENT_ERROR (sink, RESOURCE, WRITE, @@ -308,9 +249,6 @@ gst_tcp_client_sink_set_property (GObject * object, guint prop_id, case ARG_PORT: tcpclientsink->port = g_value_get_int (value); break; - case ARG_PROTOCOL: - tcpclientsink->protocol = g_value_get_enum (value); - break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); @@ -334,9 +272,6 @@ gst_tcp_client_sink_get_property (GObject * object, guint prop_id, case ARG_PORT: g_value_set_int (value, tcpclientsink->port); break; - case ARG_PROTOCOL: - g_value_set_enum (value, tcpclientsink->protocol); - break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); diff --git a/gst/tcp/gsttcpclientsink.h b/gst/tcp/gsttcpclientsink.h index 4399870..09556ff 100644 --- a/gst/tcp/gsttcpclientsink.h +++ b/gst/tcp/gsttcpclientsink.h @@ -76,7 +76,6 @@ struct _GstTCPClientSink { GstPollFD sock_fd; size_t data_written; /* how much bytes have we written ? */ - GstTCPProtocol protocol; /* used with the protocol enum */ gboolean caps_sent; /* whether or not we sent caps already */ }; diff --git a/gst/tcp/gsttcpclientsrc.c b/gst/tcp/gsttcpclientsrc.c index b8ac849..e7c9d72 100644 --- a/gst/tcp/gsttcpclientsrc.c +++ b/gst/tcp/gsttcpclientsrc.c @@ -62,8 +62,7 @@ enum { PROP_0, PROP_HOST, - PROP_PORT, - PROP_PROTOCOL + PROP_PORT }; @@ -125,10 +124,6 @@ gst_tcp_client_src_class_init (GstTCPClientSrcClass * klass) g_param_spec_int ("port", "Port", "The port to receive packets from", 0, TCP_HIGHEST_PORT, TCP_DEFAULT_PORT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - g_object_class_install_property (gobject_class, PROP_PROTOCOL, - g_param_spec_enum ("protocol", "Protocol", "The protocol to wrap data in", - GST_TYPE_TCP_PROTOCOL, GST_TCP_PROTOCOL_NONE, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gstbasesrc_class->get_caps = gst_tcp_client_src_getcaps; gstbasesrc_class->start = gst_tcp_client_src_start; @@ -148,7 +143,6 @@ gst_tcp_client_src_init (GstTCPClientSrc * this, GstTCPClientSrcClass * g_class) this->port = TCP_DEFAULT_PORT; this->host = g_strdup (TCP_DEFAULT_HOST); this->sock_fd.fd = -1; - this->protocol = GST_TCP_PROTOCOL_NONE; this->caps = NULL; GST_OBJECT_FLAG_UNSET (this, GST_TCP_CLIENT_SRC_OPEN); @@ -196,37 +190,9 @@ gst_tcp_client_src_create (GstPushSrc * psrc, GstBuffer ** outbuf) GST_LOG_OBJECT (src, "asked for a buffer"); - /* read the buffer header if we're using a protocol */ - switch (src->protocol) { - case GST_TCP_PROTOCOL_NONE: - ret = gst_tcp_read_buffer (GST_ELEMENT (src), src->sock_fd.fd, - src->fdset, outbuf); - break; - - case GST_TCP_PROTOCOL_GDP: - /* get the caps if we're using GDP */ - if (!src->caps_received) { - GstCaps *caps; - - GST_DEBUG_OBJECT (src, "getting caps through GDP"); - ret = gst_tcp_gdp_read_caps (GST_ELEMENT (src), src->sock_fd.fd, - src->fdset, &caps); - - if (ret != GST_FLOW_OK) - goto no_caps; - - src->caps_received = TRUE; - src->caps = caps; - } - - ret = gst_tcp_gdp_read_buffer (GST_ELEMENT (src), src->sock_fd.fd, - src->fdset, outbuf); - break; - default: - /* need to assert as buf == NULL */ - g_assert ("Unhandled protocol type"); - break; - } + /* read the buffer header */ + ret = gst_tcp_read_buffer (GST_ELEMENT (src), src->sock_fd.fd, + src->fdset, outbuf); if (ret == GST_FLOW_OK) { GST_LOG_OBJECT (src, @@ -248,12 +214,6 @@ wrong_state: GST_DEBUG_OBJECT (src, "connection to closed, cannot read data"); return GST_FLOW_WRONG_STATE; } -no_caps: - { - GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL), - ("Could not read caps through GDP")); - return ret; - } } static void @@ -274,9 +234,6 @@ gst_tcp_client_src_set_property (GObject * object, guint prop_id, case PROP_PORT: tcpclientsrc->port = g_value_get_int (value); break; - case PROP_PROTOCOL: - tcpclientsrc->protocol = g_value_get_enum (value); - break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); @@ -297,9 +254,6 @@ gst_tcp_client_src_get_property (GObject * object, guint prop_id, case PROP_PORT: g_value_set_int (value, tcpclientsrc->port); break; - case PROP_PROTOCOL: - g_value_set_enum (value, tcpclientsrc->protocol); - break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); diff --git a/gst/tcp/gsttcpclientsrc.h b/gst/tcp/gsttcpclientsrc.h index 24d31e8..77d5702 100644 --- a/gst/tcp/gsttcpclientsrc.h +++ b/gst/tcp/gsttcpclientsrc.h @@ -67,7 +67,6 @@ struct _GstTCPClientSrc { GstPollFD sock_fd; GstPoll *fdset; - GstTCPProtocol protocol; /* protocol used for reading data */ gboolean caps_received; /* if we have received caps yet */ GstCaps *caps; }; diff --git a/gst/tcp/gsttcpserversrc.c b/gst/tcp/gsttcpserversrc.c index c4244da..e0bcc4c 100644 --- a/gst/tcp/gsttcpserversrc.c +++ b/gst/tcp/gsttcpserversrc.c @@ -63,8 +63,7 @@ enum { PROP_0, PROP_HOST, - PROP_PORT, - PROP_PROTOCOL + PROP_PORT }; @@ -122,10 +121,6 @@ gst_tcp_server_src_class_init (GstTCPServerSrcClass * klass) g_param_spec_int ("port", "Port", "The port to listen to", 0, TCP_HIGHEST_PORT, TCP_DEFAULT_PORT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); - g_object_class_install_property (gobject_class, PROP_PROTOCOL, - g_param_spec_enum ("protocol", "Protocol", "The protocol to wrap data in", - GST_TYPE_TCP_PROTOCOL, GST_TCP_PROTOCOL_NONE, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gstbasesrc_class->start = gst_tcp_server_src_start; gstbasesrc_class->stop = gst_tcp_server_src_stop; @@ -144,7 +139,6 @@ gst_tcp_server_src_init (GstTCPServerSrc * src, GstTCPServerSrcClass * g_class) src->host = g_strdup (TCP_DEFAULT_HOST); src->server_sock_fd.fd = -1; src->client_sock_fd.fd = -1; - src->protocol = GST_TCP_PROTOCOL_NONE; GST_OBJECT_FLAG_UNSET (src, GST_TCP_SERVER_SRC_OPEN); } @@ -205,47 +199,8 @@ restart: GST_LOG_OBJECT (src, "asked for a buffer"); - switch (src->protocol) { - case GST_TCP_PROTOCOL_NONE: - ret = gst_tcp_read_buffer (GST_ELEMENT (src), src->client_sock_fd.fd, - src->fdset, outbuf); - break; - - case GST_TCP_PROTOCOL_GDP: - if (!src->caps_received) { - GstCaps *caps; - gchar *string; - - ret = gst_tcp_gdp_read_caps (GST_ELEMENT (src), src->client_sock_fd.fd, - src->fdset, &caps); - - if (ret == GST_FLOW_WRONG_STATE) - goto gdp_cancelled; - - if (ret != GST_FLOW_OK) - goto gdp_caps_read_error; - - src->caps_received = TRUE; - string = gst_caps_to_string (caps); - GST_DEBUG_OBJECT (src, "Received caps through GDP: %s", string); - g_free (string); - - gst_pad_set_caps (GST_BASE_SRC_PAD (psrc), caps); - } - - ret = gst_tcp_gdp_read_buffer (GST_ELEMENT (src), src->client_sock_fd.fd, - src->fdset, outbuf); - - if (ret == GST_FLOW_OK) - gst_buffer_set_caps (*outbuf, GST_PAD_CAPS (GST_BASE_SRC_PAD (src))); - - break; - - default: - /* need to assert as buf == NULL */ - g_assert ("Unhandled protocol type"); - break; - } + ret = gst_tcp_read_buffer (GST_ELEMENT (src), src->client_sock_fd.fd, + src->fdset, outbuf); if (ret == GST_FLOW_OK) { GST_LOG_OBJECT (src, @@ -282,20 +237,6 @@ accept_error: ("Could not accept client on server socket: %s", g_strerror (errno))); return GST_FLOW_ERROR; } -gdp_cancelled: - { - GST_DEBUG_OBJECT (src, "reading gdp canceled"); - return GST_FLOW_WRONG_STATE; - } -gdp_caps_read_error: - { - /* if we did not get canceled, report an error */ - if (ret != GST_FLOW_WRONG_STATE) { - GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL), - ("Could not read caps through GDP")); - } - return ret; - } } static void @@ -316,9 +257,6 @@ gst_tcp_server_src_set_property (GObject * object, guint prop_id, case PROP_PORT: tcpserversrc->server_port = g_value_get_int (value); break; - case PROP_PROTOCOL: - tcpserversrc->protocol = g_value_get_enum (value); - break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); @@ -339,9 +277,6 @@ gst_tcp_server_src_get_property (GObject * object, guint prop_id, case PROP_PORT: g_value_set_int (value, tcpserversrc->server_port); break; - case PROP_PROTOCOL: - g_value_set_enum (value, tcpserversrc->protocol); - break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); diff --git a/gst/tcp/gsttcpserversrc.h b/gst/tcp/gsttcpserversrc.h index 22c7afe..f5e80e2 100644 --- a/gst/tcp/gsttcpserversrc.h +++ b/gst/tcp/gsttcpserversrc.h @@ -74,7 +74,6 @@ struct _GstTCPServerSrc { GstPoll *fdset; - GstTCPProtocol protocol; /* protocol used for reading data */ gboolean caps_received; /* if we have received caps yet */ };