gst_bus_remove_watch was not declared in this scope

Mikl michael.yarochkin at timetronics.be
Mon Dec 19 08:04:00 UTC 2016


Hello, Yashi

(really strange... my answer from 3 days ago is disappeared. probably the
reason, i send it from office 365)

But i found problem and already solved it:
In Debian packages GStreamer is 1.4.x. And 1.10.2 is only "testing"
In Ubuntu it is 1.8.x. So, i took it and happy now.

----------------------------------------------------------
my mail from 16.12.2016
----------------------------------------------------------

All information you asked is in the bottom of this post.

In my command line, without another "garbage", all from you line is present.
I am more thinking about "Since: 1.6".
Do i have wrong package?
How to check?
How to fix?

Thank you.

Mikl


My command line is 

g++ -c -m32 -pipe -Wno-unknown-pragmas -g -std=c++0x -Wall -W -D_REENTRANT
-fPIC -DQT_DLL -DGSTREAMERINSPECTOR_EXPORT -DQT_PLUGIN -DQT_GUI_LIB
-DQT_CORE_LIB -I/media/sf_VideoID/Modules/Utilities/Video/GStreamerInspector
-I.
-I/media/sf_VideoID/Modules/Utilities/Video/GStreamerInspector/GeneratedFiles
-I/media/sf_VideoID/Modules/Utilities/Video/GStreamerInspector
-I/media/sf_VideoID/Modules/Utilities/Video/GStreamerInspector/GeneratedFiles/Debug
-I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/home/tt/Qt/5.5/gcc/include
-I/home/tt/Qt/5.5/gcc/include/QtGui -I/home/tt/Qt/5.5/gcc/include/QtCore
-IGeneratedFiles/debug -I/home/tt/Qt/5.5/gcc/mkspecs/linux-g++-32 -o
debug/gstreamerinspector.o
/media/sf_VideoID/Modules/Utilities/Video/GStreamerInspector/gstreamerinspector.cpp

My code is

 
void GStreamerInspector::StartWaitgLoop()
{
//get pipeline bus
_bus = gst_pipeline_get_bus(GST_PIPELINE(_pipeline));

//register call back function for bus monitoring
gst_bus_add_watch(_bus, BusCallback, this);

//try to finf a better way to trabsfer exceptin
if (_loopError != nullptr)
delete _loopError;

_loopError = nullptr;

//run loop
g_main_loop_run(_loop);

//int GStreamerInspector::BusCallback(GstBus*, GstMessage* message, void*
data)
        //will wait for EOS
        //and will do
        //g_main_loop_quit(_loop);

//stop watching
        gst_bus_remove_watch(_bus); <-compiler complain is here

//free recources
gst_object_unref(_bus);

if (_loopError != nullptr)
throw *_loopError; //throw first from list exception
}



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gst-bus-remove-watch-was-not-declared-in-this-scope-tp4681177p4681203.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list