diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1129cc6..98166b7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,6 +5,10 @@ project(gscam)
# System Dependencies
find_package(PkgConfig)
+pkg_check_modules(GSTREAMER QUIET gstreamer-0.10)
+if(NOT GSTREAMER_FOUND)
+ set(GSTREAMER_VERSION_1_x TRUE)
+endif()
if(GSTREAMER_VERSION_1_x)
message(STATUS "gst 1.0")
pkg_check_modules(GSTREAMER REQUIRED gstreamer-1.0)
diff --git a/package.xml b/package.xml
index c4f9e8f..6581bc4 100644
--- a/package.xml
+++ b/package.xml
@@ -15,8 +15,8 @@
catkin
- libgstreamer0.10-dev
- libgstreamer-plugins-base0.10-dev
+ libgstreamer1.0-dev
+ libgstreamer-plugins-base1.0-dev
nodelet
cv_bridge