[gst-devel] No notify signal from queue element
Learner
ruxyz at yahoo.com
Fri Aug 31 11:14:32 CEST 2007
Hi Stefan,
The Queue properties which I was referring to are
READ ONLY properties, hence a g_object_set() will
not work.
(1)current-level-buffers
(2)current-level-bytes
(3)current-level-time
These properties report the current buffer
level in the queue, and hence are altered
by the queue only.
As per the documentation, the changes can be
tracked by a notify , but that does not work.
I have tried using a fakesrc with the queue
and fakesink in a sample application,
but the notify did not trigger.
IMHO a g_object_notify call needs to be made
in gstqueue.c in places where the below
fields are updated.
queue->cur_level.buffers
queue->cur_level.bytes
queue->cur_level.time
Thanks !
--- Stefan Kost <ensonic at hora-obscura.de> wrote:
> hi,
> Learner wrote:
> > Hi,
> >
> > According to the documentation the queue element
>
> > supports, notification signal for changes in level
>
> > of queue data, viz buffers, time and bytes.
> >
> > This does not seem to work for me. Also,
> observed
> > no invocation of g_object_notify to support this.
> Eah property causes notify to trigger when someone
> does g_object_set(). All that
> it needs is a running main_loop. Do you have one.
>
> Stefan
> >
> > Is the documentation flawed or I'am missing
> > something ? Could somebody please clarify my doubt
> ?
> >
> >>From the docs / code ......
> >
> > ---------------------------------------------
> > * You can query how many buffers are queued by
> reading
> > the
> > * #GstQueue:current-level-buffers property. You
> can
> > track changes
> > * by connecting to the
> notify::current-level-buffers
> > signal (which
> > * like all signals will be emitted from the
> streaming
> > thread). The same
> > * applies to the #GstQueue:current-level-time and
> > * #GstQueue:current-level-bytes properties.
> > ----------------------------------------------
> >
> > Cheers.
> >
> >
> > Download prohibited? No problem. CHAT from
> any browser, without download. Go to
> http://in.messenger.yahoo.com/webmessengerpromo.php/
> >
> >
>
-------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?
> Stop.
> > Now Search log events and configuration files
> using AJAX and a browser.
> > Download your FREE copy of Splunk now >>
> http://get.splunk.com/
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.sourceforge.net
> >
>
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
Download prohibited? No problem. CHAT from any browser, without download. Go to http://in.messenger.yahoo.com/webmessengerpromo.php/
More information about the gstreamer-devel
mailing list