[fileselectiondialog] Preview video pops a new window
Submitted by Thiago Sousa Santos
Assigned to Thiago Sousa Santos
When the user clicks a video on the import file dialog, the video shows on a separate (new) window, because the code that sets the xwindow-id to the sink raises an exception before it sets the x-window-id.
The attached patch fixes this by being more careful with setting the xwindow-id and by setting the properties to the correct elements, avoiding the exception.
Imported from https://bugzilla.gnome.org/show_bug.cgi?id=675202