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 369134 - video disappears when moving totem to another screen
video disappears when moving totem to another screen
Status: RESOLVED WONTFIX
Product: totem
Classification: Core
Component: GStreamer backend
2.17.x
Other Linux
: Normal normal
: ---
Assigned To: Maintainer alias for GStreamer component of Totem
Maintainer alias for GStreamer component of Totem
Depends on:
Blocks:
 
 
Reported: 2006-11-01 23:21 UTC by Christian Persch
Modified: 2012-10-09 16:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
add menu item for moving totem window to another screen (2.43 KB, text/plain)
2006-11-01 23:22 UTC, Christian Persch
  Details
patch for gst video sinks (7.34 KB, text/plain)
2006-11-30 19:27 UTC, Christian Persch
  Details
patch for bvw (9.26 KB, patch)
2006-11-30 19:29 UTC, Christian Persch
none Details | Review
Add "Move to next screen" menu item (3.01 KB, patch)
2012-04-03 19:54 UTC, Bastien Nocera
reviewed Details | Review

Description Christian Persch 2006-11-01 23:21:18 UTC
Steps to repro:
0) Xnest -ac -scrns 2 :1
1) Apply the attached patch to totem
2) $ DISPLAY=:1 totem
3) Load a video
4) Help->Move to next screen

Result:
Video disappears. When you move the window back to the original screen, it doesn't come back either.

This is with totem/gst (cvs); totem/xine crashes when moving the window to the 2nd screen.
Comment 1 Christian Persch 2006-11-01 23:22:00 UTC
Created attachment 75807 [details]
add menu item for moving totem window to another screen
Comment 2 Bastien Nocera 2006-11-03 17:09:45 UTC
Neat.

My guess is that the backends are stupid as sin handling this. I'm pretty sure that the xine-lib backend would need a complete tear-down, and build-up to be able to handle this. Not sure about the GStreamer one.
Comment 3 Bastien Nocera 2006-11-06 14:40:15 UTC
This is obviously a backend related matter, so cloning and reassigning.
Comment 4 Christian Persch 2006-11-30 19:27:08 UTC
Created attachment 77440 [details]
patch for gst video sinks
Comment 5 Christian Persch 2006-11-30 19:29:36 UTC
Created attachment 77441 [details] [review]
patch for bvw

So I patched the gst x(v)imagesink to use a different screen, and made bvw use that; but when I move screens, it crashes in some other thread updating the output on the _old_ display.... am I missing some locks maybe, or is this inherently impossible?
(I tested only ximagesink, since Xnest doesn't support xv.)
Comment 6 Bastien Nocera 2012-04-03 19:54:26 UTC
Created attachment 211248 [details] [review]
Add "Move to next screen" menu item
Comment 7 Bastien Nocera 2012-04-03 19:54:53 UTC
Comment on attachment 75807 [details]
add menu item for moving totem window to another screen

Obsoleted by the next uploaded patch
Comment 8 Bastien Nocera 2012-04-03 19:56:17 UTC
Christian, do you have instructions on how to reproduce the bug with Xephyr? Xnets just crashes for me.
Comment 9 Christian Persch 2012-04-03 20:22:34 UTC
AFAIK Xephyr doesn't do multi-screen.
Comment 10 Philip Withnall 2012-04-03 21:42:10 UTC
Review of attachment 211248 [details] [review]:

::: data/totem.ui
@@ +263,3 @@
+         <child>
+            <object class="GtkAction" id="move-to-screen">
+               <property name="label" translatable="yes">Move to next screen</property>

Needs to be Title Case. Because Everybody Loves Arbitrary Capitalisation.

::: src/totem-menu.c
@@ +1392,3 @@
+	}
+	else
+	{

Shouldn't the braces be inline with the ‘else’?
Comment 11 Bastien Nocera 2012-04-07 13:42:10 UTC
(In reply to comment #10)
> Review of attachment 211248 [details] [review]:

It's a test patch, we're not going to commit that...
Comment 12 Bastien Nocera 2012-10-09 16:19:03 UTC
I'll say that we'll care about this when we have a way of reproducing the problem.