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 406807 - visualisation plugin blocks video output when not active
visualisation plugin blocks video output when not active
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: Plugins (other)
0.10.0
Other Linux
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
: 442725 453768 527814 (view as bug list)
Depends on: 542922
Blocks:
 
 
Reported: 2007-02-11 19:18 UTC by Sebastien Bacher
Modified: 2009-05-23 11:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix tee mode a bit (4.68 KB, patch)
2007-06-20 22:38 UTC, Jonathan Matthew
none Details | Review
less broken patch (4.57 KB, patch)
2007-06-24 02:44 UTC, Jonathan Matthew
committed Details | Review

Description Sebastien Bacher 2007-02-11 19:18:43 UTC
That bug has been described on https://launchpad.net/ubuntu/+source/rhythmbox/+bug/84245

"Binary package hint: rhythmbox

Using feisty
mplayer 2:1.0~rc1-0ubuntu3
rhythmbox 0.9.7.90-0ubuntu1

After dist-upgrade I have to use -vo x11 with mplayer. First I thought it was bug in mplayer, but when the rhythmbox is not playing I can watch movies with default options.

Run Rhythmbox and make it play some music
$ mplayer -vo xv some.avi # gives:
(...)
Xv: could not grab port 73
Could not find free Xvideo port - maybe another process is already using it.
...
I'm not using any visualisation/effects. It's enough that the Visualisation plugin is enabled in the "Configure plugins". It doesn't have to be active. Moreover Rhythmbox is hidden (Ctrl+W).
At first I had no idea that Rhythmbox is causing my problems with mplayer and I was wondering what's wrong with mplayer."
Comment 1 Götz Waschk 2007-04-12 08:21:29 UTC
Indeed, if you enable the visual effects plugin in rhythmbox, the Xvideo port is blocked. I can confirm this with rhythmbox 0.10.0 on Mandriva Cooker.
Comment 2 misc 2007-04-12 08:25:51 UTC
In order to reproduce the bug, you need to have a video card with only one xv port, be careful to check xvinfo output :

$ xvinfo | grep -B 1 ports
  Adaptor #0: "SIS 300/315/330 series Video Overlay"
    number of ports: 1
--
  Adaptor #1: "SIS 315/330 series Video Blitter"
    number of ports: 16

Comment 3 Jonathan Matthew 2007-05-31 23:50:19 UTC
*** Bug 442725 has been marked as a duplicate of this bug. ***
Comment 4 Jonathan Matthew 2007-06-11 03:45:27 UTC
For the playbin-based case, we could use a GstSwitchSink to switch between a fakesink (while disabled) and the real sink (while enabled) - but GstSwitchSink doesn't yet support switching sinks in PLAYING state and also isn't exposed in the GStreamer API.

Alternatively, if playbin was fixed so that we can enable visualization at any time (bug 379822 - playbin2, maybe?), the sink element would only exist while visualization was active.

For the tee-based case, I think we just need to remove the code that sets the sink to READY during plugin activation.  We'd probably want to set the sink to READY before adding the visualization branch to the pipeline to check that xv ports etc. were available for it, and just disable visualization if they're not.
Comment 5 Jonathan Matthew 2007-06-20 22:38:43 UTC
Created attachment 90374 [details] [review]
fix tee mode a bit

Since the playbin-based code will be quite hard to fix, maybe we should just use the tee mode with the playbin player backend instead?
Comment 6 Jonathan Matthew 2007-06-24 02:44:14 UTC
Created attachment 90536 [details] [review]
less broken patch
Comment 7 James "Doc" Livingston 2007-06-24 03:20:30 UTC
Looks okay to me.
Comment 8 Jonathan Matthew 2007-06-29 14:00:06 UTC
I fixed the patch up a bit more and committed it.
Comment 9 Jonathan Matthew 2007-07-04 21:50:57 UTC
*** Bug 453768 has been marked as a duplicate of this bug. ***
Comment 10 unggnu 2007-09-24 09:14:08 UTC
I can confirm this bug under Ubuntu Gutsy Gibbon with Intel 915 graphic.
Comment 11 Jonathan Matthew 2008-04-13 02:12:52 UTC
*** Bug 527814 has been marked as a duplicate of this bug. ***
Comment 12 Jonathan Matthew 2009-03-22 13:25:06 UTC
Switching to playbin2 will fix this, I believe.
Comment 13 Jonathan Matthew 2009-05-23 11:42:06 UTC
Switching to playbin2 has fixed this.