rgvolume is not adjusting volume?

Cy cy at verge.info.tm
Thu Jan 5 00:31:09 PST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Well, looks like I'm on my own then. *sighs*

I looked at the source of the gstrgvolume.c and gstrganalysis.c to see
if I could figure out how to notify rgvolume that it does indeed have a
gain and peak to apply. Since the rgvolume code silently failed when it
found no tags for said gain peak and level I added in a line to log a
message when it found no tags, but otherwise left the source well
unmodified.

I'm not really sure what the problem is here. I tried using
gst_bus_post to post a message with the tag list. I tried
gst_pad_push_event on the specific pad that reads those events. Oddly,
rgvolume's "sink" pad reads the events. Wouldn't the "src" pad be the
one that responded to events to adjust the gain and peak of the signal
filtering through? I tried gst_element_found_tags_for_pad on the
pipeline for that pad, and gst_element_found_tags on the pipeline in
general. In all 4 methods, the rgvolume should have found both a track
gain and a track level tag, yet the statement 

if (!has_track_gain && !has_track_peak && !has_album_gain && !has_album_peak) {

...always returns true. The only thing I can think at this point is
that something discards without processing any and all tags on the bus
when the pipeline's state switches to playing. I tried switching the
state before and after pushing the tags, again with no luck in both
situations. Is there some event that I must wait for before the
rgvolume "sink" pad can accept events to set the gain and peak it uses?

Sure would be nice if you could just set them as properties.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBCAAGBQJPBV/NAAoJEF1ecRpMzcFyyAEH/0L+y9q21HUp1aVq6L1A7jgt
c/YyLSZAZhU4uUkiRqIo4wdIBepyh+Mrv2QePJ+lN33MsEklqu71TEQT2Zd2uYrA
+7Wwe+5AMzSl3+0w8DkA0lAyMOxdh2ETqNu83dSv9q0HBs479cJxiT29iDX8MsXT
UCNFl2DqlI6McPiYcbGfbOCYc4/5Y5zXCrd8m0TabP9NE4Ljtf2hQ2sbEn83mZNB
hHTU3g3LZhY+OnW0bXa2cYz1GVHwfYBL2Y2itw+9205+7EZg6Y8fl1LJf+4pzpAW
H54+CU09lZqrqibdZQgK+nqKoY9P4BUGUH0mTi2C9/PmCzfwuNJZVfO9Ai9s2/A=
=7552
-----END PGP SIGNATURE-----


More information about the gstreamer-devel mailing list