summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.co.uk>2011-01-17 20:20:05 +0200
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.co.uk>2011-01-17 20:20:05 +0200
commita93bfb125bd2e68c73e89d7dac9fe61ce895697d (patch)
tree2047330526114c4f4eaa26dce630f637d1b1066c /examples
parentb02b18c75d1d1781b76d069dd04e0b3bd558a25f (diff)
Remove the stupid echo example.
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt1
-rw-r--r--examples/echo/CMakeLists.txt9
-rw-r--r--examples/echo/echo.pro24
-rw-r--r--examples/echo/main.cpp54
4 files changed, 0 insertions, 88 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index fde340f..27b62bb 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -1,3 +1,2 @@
-add_subdirectory(echo)
add_subdirectory(player)
add_subdirectory(appsink-src)
diff --git a/examples/echo/CMakeLists.txt b/examples/echo/CMakeLists.txt
deleted file mode 100644
index 07a4569..0000000
--- a/examples/echo/CMakeLists.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-# This file serves as an example of how to use cmake with QtGStreamer.
-# It can be used for building this example either in the QtGStreamer source tree or standalone.
-
-find_package(QtGStreamer REQUIRED)
-include_directories(${QTGSTREAMER_INCLUDES})
-add_definitions(${QTGSTREAMER_DEFINITIONS})
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${QTGSTREAMER_FLAGS}")
-add_executable(echo main.cpp)
-target_link_libraries(echo ${QTGSTREAMER_LIBRARIES})
diff --git a/examples/echo/echo.pro b/examples/echo/echo.pro
deleted file mode 100644
index f66d2b2..0000000
--- a/examples/echo/echo.pro
+++ /dev/null
@@ -1,24 +0,0 @@
-# This is a qmake project file, provided as an example on how to use qmake with QtGStreamer.
-
-TEMPLATE = app
-TARGET = echo
-
-# Tell qmake to use pkg-config to find QtGStreamer.
-CONFIG += link_pkgconfig
-
-# Now tell qmake to link to QtGStreamer-0.10 and also use its include path and Cflags.
-# Also add QtGStreamerUi-0.10 here if you are using classes from QGst::Ui
-PKGCONFIG += QtGStreamer-0.10
-
-# Recommended if you are using g++ 4.5 or later. Must be removed for other compilers.
-#QMAKE_CXXFLAGS += -std=c++0x
-
-# Recommended, to avoid possible issues with the "emit" keyword
-# You can otherwise also define QT_NO_EMIT, but notice that this is not a documented Qt macro.
-DEFINES += QT_NO_KEYWORDS
-
-# This example has no GUI
-QT -= gui
-
-# Input
-SOURCES += main.cpp
diff --git a/examples/echo/main.cpp b/examples/echo/main.cpp
deleted file mode 100644
index de5fbae..0000000
--- a/examples/echo/main.cpp
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- Copyright (C) 2009-2010 George Kiagiadakis <kiagiadakis.george@gmail.com>
-
- This library is free software; you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as published
- by the Free Software Foundation; either version 2.1 of the License, or
- (at your option) any later version.
-
- This program 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 General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-#include <QGst/Pipeline>
-#include <QGst/ElementFactory>
-#include <QGst/Init>
-#include <QtCore/QCoreApplication>
-#include <QtCore/QFile>
-#include <signal.h>
-
-static void sighandler(int code)
-{
- Q_UNUSED(code);
- qDebug("SIGINT");
- QCoreApplication::quit();
-}
-
-int main(int argc, char **argv)
-{
- QCoreApplication app(argc, argv);
- QGst::init(&argc, &argv);
-
- QGst::PipelinePtr pipeline = QGst::Pipeline::create();
-
- QGst::ElementPtr src = QGst::ElementFactory::make("audiotestsrc");
- QGst::ElementPtr sink = QGst::ElementFactory::make("autoaudiosink");
-
- pipeline->add(src);
- pipeline->add(sink);
- src->link(sink);
-
- pipeline->setState(QGst::StatePlaying);
-
- signal(SIGINT, sighandler);
- int result = app.exec();
-
- pipeline->setState(QGst::StateNull);
- QGst::cleanup();
-
- return result;
-}