Re: Gst::PlayBin2 signal_get_audio_tags trouble
- From: kitone <kitone free fr>
- To: gtkmm-list gnome org
- Subject: Re: Gst::PlayBin2 signal_get_audio_tags trouble
- Date: Mon, 14 Dec 2009 18:44:48 +0100
> On Sun, 2009-12-13 at 23:19 -0500, José Alburquerque wrote:
> > On Sun, 2009-12-13 at 11:27 +0100, kitone wrote:
> > > Hi,
> > > I've some trouble to using the Gst::PlayBin2 element, specially
> > > the signals signal_get_*_tags.
> > >
> > > With gstreamer (C) we can used g_signal_emit_by_name to received
> > > the tags. ex:
> > >
> > > for (i = 0; i < n_audio; i++) {
> > > g_signal_emit_by_name (pipeline, "get-audio-tags", i, &tags);
> > > ...
>
> This is unpleasant. I hope it's not the documented way to use that
> API. GTK+, for instance, would have a method that happened to do this
> in it's implementation, maybe along with other checks.
>
> But I guess gstreamer plugins rarely have actual API. They are usually
> used in C via generic property and signal functions, right? But can't
> we add a method in our C++ API?
Agree, it's unpleasant, from the doc[1] there are not an another way to
do this. The plugin doesn't have any functions.
I think the Gst::PlayBin2 need to have functions to do this thing
properly.
[1]
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-playbin2.html#GstPlayBin2-get-audio-tags
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]