Page 1 of 1

Error: main vout display error: Failed to set on top

Posted: 30 Aug 2011 11:31
by sibeMamnue
* Edit post
* Delete post
* Report this post
* Reply with quote

Error: main vout display error: Failed to set on top This e

Postby sibeMamnue » Tue Aug 30, 2011 9:19 am
Hi all

I have downloaded and installed vlc-1.2.0-git-2011.07.18-1810 on my PC and also I am using VLCJ 1.2. I am trying to recompile and run vlcj-1.2.0-sources package. After setting path and running this program; when I want to play a video; I see error messages as bellow and my system stops working for some seconds. When I asked my question In VLCJ google group; I was answered that
Error: main vout display error: Failed to set on top
This error is caused by VLC not VLCJ. If you can please help me!



vlcj: (WindowsCanvas.java:78) | WARN | You are using the WindowsCanvas implementation, this may cause spurious random VM crashes when you shut down your application
vlcj: (LibVlcFactory.java:106) | INFO | vlc: 1.2.0-
git-20110718-1810 Twoflower, changeset 1.1.0-pre1-5360-gab6aece
vlcj: (LibVlcFactory.java:107) | INFO | libvlc: C:
\Program Files\VideoLAN\VLC\libvlc.dll
vlcj: (TestPlayer.java:463) | INFO |
meta=MediaDetails[titleCount=0,videoTrackCount=2,audioTrackCount=2,spuCount=0,titleDescriptions=[],videoDescriptions=[TrackDescription[id=-1,description=Disable],
TrackDescription[id=0,description=Track
1]],audioDescriptions=[TrackDescription[id=-1,description=Disable],
TrackDescription[id=1,description=Track
1]],spuDescriptions=[],chapterDescriptions=[]]
[flv @ 06c02c20] Estimating duration from bitrate, this may be inaccurate
[06c76f90] main vout display error: Failed to set on top
vlcj: (DefaultMediaPlayer.java:607) | WARN | Video size is not available
[06c1c468] main video output error: vlc_object_find_name("marq") is not safe!
[06c1c468] main video output error: vlc_object_find_name("marq") is not safe!
[06c1c468] main video output error: vlc_object_find_name("marq") is not safe!
[06c1c468] main video output error: vlc_object_find_name("marq") is not safe!

Re: Error: main vout display error: Failed to set on top

Posted: 30 Aug 2011 12:08
by Rémi Denis-Courmont
This error is caused by using your own window canvas, which makes it impossible for VLC to set the always-on-top parameter. This is not an issue.

Re: Error: main vout display error: Failed to set on top

Posted: 30 Aug 2011 13:13
by sibeMamnue
This error is caused by using your own window canvas, which makes it impossible for VLC to set the always-on-top parameter. This is not an issue.
Yes this program uses WindowsCanvas as bellow. I changed it to be Canvas; but still I see this problem as before.

if(RuntimeUtil.isWindows()) {
// If running on Windows and you want the mouse/keyboard event hack...
videoSurface = new Canvas(); //WindowsCanvas();
}
else {
videoSurface = new Canvas();
}

output is:

[flv @ 04e40e40] Estimating duration from bitrate, this may be inaccurate
[04ecbea8] main vout display error: Failed to set on top
vlcj: (DefaultMediaPlayer.java:607) | WARN | Video size is not available
[06f59a88] main video output error: vlc_object_find_name("marq") is not safe!
[06f59a88] main video output error: vlc_object_find_name("marq") is not safe!

Re: Error: main vout display error: Failed to set on top

Posted: 03 Sep 2011 10:36
by sibeMamnue
this solution was not helpful :(

Re: Error: main vout display error: Failed to set on top

Posted: 08 Sep 2011 02:10
by davidstevens
... bump

I'm having exactly the same problem. I would really appreciate any help you can give.

Thanks

David

Possible solution?

Posted: 10 Sep 2011 09:11
by Boardwish
I'm not sure if that can help you, but I had also the same problem...
The test application crashed after I started to play a video file.

I debugged the code and found out that the marquee demo caused the crash,
so I commented out
"mediaPlayer.enableMarquee(true);" in TestPlayer.java and now I can play the file :)