Hi Guys,
I'm having difficulty rendering a GStreamer video onto a wxPerl panel.
According to the doc it should be something like this:
http://stackoverflow.com/questions/23547043/gtk-window-pointer-for-a-wxpanel-to-render-a-gstreamer-videomy $video_panel=Wx::Panel->new($i_main_menu, wxID_ANY, wxDefaultPositi +on, [800,600],); (... lots of code goes here and the full executable version is here:
But I don't get a pointer from GetHandle just an integer as explained here (from the doc):) my $g_window = $video_panel->GetHandle; $message->src->set_window_handle($g_window);
and then it errors like this:vir tual WXWidget wxWindow::GetHandle() const Returns the platform-specific handle of the physical window. Cast it to an appropriate handle, such as HWND for Windows, Widget for Motif or GtkWidget for GTK. wxPerl Note: This method will return an integer in wxPerl.
The program 'GStreamer_test_6.pl' received an X Window System error. This probably reflects a bug in the program. The error was 'BadWindow (invalid Window parameter)'. (Details: serial 17 error_code 3 request_code 3 minor_code 0) (Note to programmers: normally, X errors are reported asynchronousl +y; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.)
I guess I need to convert the integer to some sort of pointer object that GStreamer recognises.
Does anyone have any idea what the correct code should look like?
Regards
Steve.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |