How to extract tags from a stream without playing it?

Tim-Philipp Müller t.i.m at zen.co.uk
Sat Jun 11 07:21:53 PDT 2011


On Sat, 2011-06-11 at 04:18 -0400, Phong Cao wrote:

> I decided to try out the GstDiscoverer. I already included necessary
> header. However, it ould not be compiled:
>
> g++ -g /home/phongcao/C/dingo-draft.cc -o /home/phongcao/C/dingo-draft
> `pkg-config --cflags --libs gtk+-2.0 gstreamer-0.10`
>
> ...
> /home/phongcao/C/dingo-draft.cc:57: error: ‘GstDiscoverer’ was not
> declared in this scope
> ...
>
> Is there anything wrong with the way I compile the source with
> GstDiscoverer?

If you pass gstreamer-0.10 to pkg-config, that'll only get you the core
GStreamer includes and library, there are other non-core
gstreamer-*-0.10 packages with further functionality. GstDiscoverer
lives in one of those. Add "gstreamer-pbutils-0.10" to the modules list
in pkg-config.

 Cheers
  -Tim





More information about the gstreamer-devel mailing list