After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 329629 - Inline Audio plugin still uses GStreamer 0.8
Inline Audio plugin still uses GStreamer 0.8
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.10.x (obsolete)
Other Linux
: Immediate critical
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[eplugin]
: 397520 (view as bug list)
Depends on:
Blocks: 327508
 
 
Reported: 2006-02-02 15:31 UTC by Ross Burton
Modified: 2013-09-10 14:04 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
first untested patch (10.52 KB, patch)
2006-06-19 01:00 UTC, André Klapper
none Details | Review
first untested try (10.35 KB, patch)
2006-06-19 01:05 UTC, André Klapper
none Details | Review
audio-inline.patch (6.39 KB, patch)
2007-03-17 23:29 UTC, Florian Steinel
none Details | Review
org-gnome-audio-inline.eplug.xml.patch (2.10 KB, patch)
2007-03-17 23:31 UTC, Florian Steinel
needs-work Details | Review
audio-inline.patch (6.42 KB, patch)
2007-03-17 23:39 UTC, Florian Steinel
none Details | Review
listmain.c (3.55 KB, text/plain)
2007-03-18 00:00 UTC, Florian Steinel
  Details
audio-inline.patch (6.85 KB, patch)
2007-03-18 15:58 UTC, Florian Steinel
none Details | Review
configure.in.patch (567 bytes, patch)
2007-03-18 16:12 UTC, Florian Steinel
needs-work Details | Review
audio-inline.patch (8.63 KB, patch)
2007-03-18 18:08 UTC, Florian Steinel
needs-work Details | Review
audio-inline.patch (8.63 KB, patch)
2007-03-18 18:59 UTC, Florian Steinel
needs-work Details | Review
gstreamer 0.10 support (16.96 KB, patch)
2007-09-04 16:49 UTC, Frederic Crozat
none Details | Review
only monitor playbin state change (17.03 KB, patch)
2007-09-04 17:13 UTC, Frederic Crozat
committed Details | Review

Description Ross Burton 2006-02-02 15:31:13 UTC
In Evo 2.5.90 the inline-audio plugin uses gstreamer 0.8, which makes it the only component of GNOME 2.14 to use gstreamer 0.8 rather than 0.10.

Porting it should be a very trivial job, and would benefit everyone.
Comment 1 André Klapper 2006-02-04 21:25:20 UTC
confirming, setting priority and severity, adding target milestone.
this is in evolution/configure.in
Comment 2 Karsten Bräckelmann 2006-02-09 02:30:37 UTC
Good catch, Ross. Maybe some gstreamer hackers can assist here?
Comment 3 Karsten Bräckelmann 2006-02-17 22:18:35 UTC
Raising Priority.

Evo 2.6 officially is part of GNOME 2.14, which will ship with gstreamer 0.10. If this will not be fixed till then, the plugin *must* be disabled. Sadly...
Comment 4 André Klapper 2006-02-27 23:36:09 UTC
raising severity.
Comment 5 Christopher Aillon 2006-02-28 17:26:18 UTC
Shouldn't this be on a blocker list of some sort, since some action is required here before the final stable bits?  Either this gets fixed or the plugin is disabled (note: that unfortunately, Fedora has already disabled this plugin in order to drop the gstreamer 0.8 dependency).
Comment 6 André Klapper 2006-02-28 19:55:23 UTC
dunno if gstreamer hackers have to assist here, *if* it's really as trivial as changing "gstreamer-0.8" to "gstreamer-0.10" two times in configure.in.
dunno, though.
if a wise elder man would tell me "that's all", i'd do it. :-)
Comment 7 Ross Burton 2006-02-28 21:19:12 UTC
It's probably not far off, porting all of Sound Juicer took a few hours.  Change configure.in and fix the probably few compile errors.
Comment 8 Christopher Aillon 2006-03-09 14:38:46 UTC
Code freeze has come and gone.  Doesn't seem this got the right love... Plugin should be disabled?
Comment 9 André Klapper 2006-03-09 16:28:38 UTC
shres, comments? :-)
Comment 10 Michael Dominic K. 2006-03-28 00:20:33 UTC
I'm looking into that.
Comment 11 André Klapper 2006-06-19 01:00:59 UTC
Created attachment 67597 [details] [review]
first untested patch

now if i had any clue how to get the gstreamer0.10 mad plugin for suse 10.1, i could actually also *test* my patch with an mp3, grumble...

anyway... this is my first try (both to write in C as well as to fix this issue), so be patient, kindly show me my memory leaks, and give me the pat on the back that i don't deserve. ;-)
Comment 12 André Klapper 2006-06-19 01:05:12 UTC
Created attachment 67598 [details] [review]
first untested try

damnit... always check out from cvs before hacking...
Comment 13 André Klapper 2006-07-08 14:11:08 UTC
michael dominic, still looking into this? any news on this?
thanks in advance...
(i know my patch is crappy :-) )
Comment 14 Michael Dominic K. 2006-07-10 02:16:13 UTC
Sorry, it somehow went off my head. The current code is pretty bad by design. Instead of trying to create various pipelines for different file types, we should use a stock pipeline with the decodebin element. That will work transparently with all kinds of audio the user has support for installed (gst plugins).
Comment 15 André Klapper 2006-08-22 21:42:01 UTC
retargetting - i'd still be happy to see some progress.
Comment 16 Peter Robinson 2007-01-23 11:48:26 UTC
What's the status of this? It was first reported back in the 2.5 series, we're now 2.9 where gst 0.10 is more than standard everywhere!
Comment 17 Gilles Dartiguelongue 2007-01-27 12:33:15 UTC
hum first of all, this plugin doesn't use gconfaudiosink which is bad. We can't expect every users to have the same sink (and a better default would probably be alsasink anyway).

second point, as of comment #14, could you detail a bit how to use the decodebin thingy ?
Comment 18 Götz Waschk 2007-01-30 23:44:06 UTC
*** Bug 397520 has been marked as a duplicate of this bug. ***
Comment 19 Florian Steinel 2007-03-17 23:29:12 UTC
Created attachment 84800 [details] [review]
audio-inline.patch

First try with gconfaudiosink and fallback to autoaudiosink.
Also replaces filesrc with playbin.
Comment 20 Florian Steinel 2007-03-17 23:31:36 UTC
Created attachment 84801 [details] [review]
org-gnome-audio-inline.eplug.xml.patch

support more audio formats
Comment 21 Florian Steinel 2007-03-17 23:39:31 UTC
Created attachment 84803 [details] [review]
audio-inline.patch

little fixes
Comment 22 Florian Steinel 2007-03-17 23:53:53 UTC
btw: above patches are untested...
Comment 23 Florian Steinel 2007-03-18 00:00:19 UTC
Created attachment 84807 [details]
listmain.c

Is auto adding supported mime types a good approach?
compile with:
gcc `pkg-config --cflags --libs libgnomeui-2.0` `pkg-config --cflags --libs gstreamer-0.10` listmain.c -o listmain
Comment 24 Götz Waschk 2007-03-18 15:11:03 UTC
to #21: there's a wrong '}' on line 120.
Comment 25 Götz Waschk 2007-03-18 15:14:45 UTC
Also, gst_init_check now needs a third parameter: GError ** err
Comment 26 Florian Steinel 2007-03-18 15:58:56 UTC
Created attachment 84825 [details] [review]
audio-inline.patch

(In reply to comment #25 , comment #24):
Thanks for your review.
Am i using the right way to print the error messages?
Comment 27 Florian Steinel 2007-03-18 16:12:43 UTC
Created attachment 84826 [details] [review]
configure.in.patch

(In reply to comment #12):
ported configure.in patch to svn rev 33308.
require gstreamer-10
Comment 28 Götz Waschk 2007-03-18 16:15:46 UTC
To #26: It builds but it does not work, there's no gst_thread_new anymore in 0.10.
Comment 29 Florian Steinel 2007-03-18 18:08:24 UTC
Created attachment 84833 [details] [review]
audio-inline.patch

(In reply to comment #12 , comment #26):
switched to gst_pipeline_new thanks to comment #12 and #gstreamer.
Comment 30 Florian Steinel 2007-03-18 18:29:39 UTC
TODO: don't create a tempfile, use GstAppSrc ( Bug #413418 ) instead.
Comment 31 Götz Waschk 2007-03-18 18:37:30 UTC
to #29: it doesn't build here:

audio-inline.c: In function 'org_gnome_audio_inline_pobject_free':
audio-inline.c:63: error: 'struct _org_gnome_audio_inline_pobject' has no member named 'pipline'
Comment 32 Srinivasa Ragavan 2007-03-18 18:51:11 UTC
If we can get a gstreamer hacker's review too on this, it will be really great. 

Typo in

+		po->pipline = NULL;

Comment 33 Florian Steinel 2007-03-18 18:59:26 UTC
Created attachment 84838 [details] [review]
audio-inline.patch

(In reply to comment #31 , comment #32 ):
Hopefully last typo :-)
Comment 34 Götz Waschk 2007-03-18 19:10:01 UTC
Nothing happens when I press the play button. This is in ~/.xsession-errors:

audio inline formatter: format classid org-gnome-audio-inline-button-panel-0
audio inline formatter: format classid org-gnome-audio-inline-button-panel-1
audio inline formatter: play
audio inline formatter: write to temp file /home/goetz/.evolution/cache/tmp/org-gnome-audio-inline-file-LgW7HU
audio inline formatter: init gst pipeline
audio inline formatter: play
audio inline formatter: write to temp file /home/goetz/.evolution/cache/tmp/org-gnome-audio-inline-file-cLt4Re
audio inline formatter: init gst pipeline
audio inline formatter: play
Comment 35 Florian Steinel 2007-03-18 20:56:45 UTC
(In reply to comment #34)
I have to rework the patch.
(Maybe next weekend)
Comment 36 Srinivasa Ragavan 2007-05-11 19:08:00 UTC
Updating as per comment #35
Comment 37 André Klapper 2007-09-04 10:35:25 UTC
uargh... this is the last app that still needs gstreamer-0.8.
very evil from a platform POV.
Comment 38 Frederic Crozat 2007-09-04 16:49:20 UTC
Created attachment 94942 [details] [review]
gstreamer 0.10 support

I've improved previous patch and it is now working as expected. Moreover, it now uses stock buttons for the various commands and change buttons sensitivity according to playback state.
Comment 39 Frederic Crozat 2007-09-04 17:13:35 UTC
Created attachment 94943 [details] [review]
only monitor playbin state change

this version only changes button sensitivity when playbin state changes, which fixes some flickring in previous version of the patch. Thanks to Jan Schmidt for gstreamer code review.
Comment 40 Srinivasa Ragavan 2007-09-05 05:08:10 UTC
The patch makes it work against gstreamer-0.10 and works. So go ahead and commit it. I think the pause functionality is broken. But that is fine, we can fix that.
Comment 41 Frederic Crozat 2007-09-05 12:28:15 UTC
Thanks, committed :
r34180 | fcrozat | 2007-09-05 14:24:44 +0200 (mer, 05 sep 2007) | 11 lines

2007-09-05  Frederic Crozat  <fcrozat@mandriva.com>

        * configure.in:
        * plugins/audio-inline/org-gnome-audio-inline.eplug.xml
        * plugins/audio-inline/ChangeLog
        * plugins/audio-inline/audio-inline.c

        audio-inline plugin has been ported to gstreamer 0.10
        (bug #329629).


BTW, pause functionnality is working :)

But it would be probably better to rework everything to only have two buttons : play/pause and stop (or only one).