<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Playing videos with MPlayer and GStreamer inside SDL Applications</title>
	<atom:link href="http://blog.gustavobarbieri.com.br/2006/11/13/playing-videos-with-mplayer-and-gstreamer-inside-sdl-applications/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gustavobarbieri.com.br/2006/11/13/playing-videos-with-mplayer-and-gstreamer-inside-sdl-applications/</link>
	<description>a hacker analysis of life</description>
	<pubDate>Thu, 20 Nov 2008 11:39:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: NDR008</title>
		<link>http://blog.gustavobarbieri.com.br/2006/11/13/playing-videos-with-mplayer-and-gstreamer-inside-sdl-applications/#comment-21146</link>
		<dc:creator>NDR008</dc:creator>
		<pubDate>Sat, 16 Aug 2008 13:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gustavobarbieri.com.br/?p=33#comment-21146</guid>
		<description>play_win is win. You return win to play_win:

in Window create_x11_subwindow :
  win = XCreateSimpleWindow (dpy, parent, x, y, width, height, black, black);
  return win;

and Window_create_x11_subwindow was called by:
  play_win = create_x11_subwindow (sdl_info.info.x11.display, sdl_info.info.x11.window, x, y, width, height);

XDestroyWindow(dpy, play_win) destorys everything and causes a segment fault in my program (actually now yours, went to loading purely your tutorial).

I am stuck on this one problem. If I use xine instead of mplayer, this problem disappears because xine closes the window behind it somehow. The problem I have with xine is, that xine becomes the active window and hence, key events are no longer handled by the parent process. Which to some extent I can live with and figure out how to solve later.
But the problem I have with xine is I cannot use fprintf(mplayer_fp, "quit/n");

So I have no way of closing xine from the parent application.

My major issue is that my final program, won't have a keyboard or mouse. So preferably I would like to control which window is active and control things from the parent process/window.

Any help appreciated. If you want drop me an e-mail and I can send you a link to my source.

Thanks.</description>
		<content:encoded><![CDATA[<p>play_win is win. You return win to play_win:</p>
<p>in Window create_x11_subwindow :<br />
  win = XCreateSimpleWindow (dpy, parent, x, y, width, height, black, black);<br />
  return win;</p>
<p>and Window_create_x11_subwindow was called by:<br />
  play_win = create_x11_subwindow (sdl_info.info.x11.display, sdl_info.info.x11.window, x, y, width, height);</p>
<p>XDestroyWindow(dpy, play_win) destorys everything and causes a segment fault in my program (actually now yours, went to loading purely your tutorial).</p>
<p>I am stuck on this one problem. If I use xine instead of mplayer, this problem disappears because xine closes the window behind it somehow. The problem I have with xine is, that xine becomes the active window and hence, key events are no longer handled by the parent process. Which to some extent I can live with and figure out how to solve later.<br />
But the problem I have with xine is I cannot use fprintf(mplayer_fp, &#8220;quit/n&#8221;);</p>
<p>So I have no way of closing xine from the parent application.</p>
<p>My major issue is that my final program, won&#8217;t have a keyboard or mouse. So preferably I would like to control which window is active and control things from the parent process/window.</p>
<p>Any help appreciated. If you want drop me an e-mail and I can send you a link to my source.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustavo Sverzut Barbieri</title>
		<link>http://blog.gustavobarbieri.com.br/2006/11/13/playing-videos-with-mplayer-and-gstreamer-inside-sdl-applications/#comment-21145</link>
		<dc:creator>Gustavo Sverzut Barbieri</dc:creator>
		<pubDate>Sat, 16 Aug 2008 03:37:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gustavobarbieri.com.br/?p=33#comment-21145</guid>
		<description>You should use XDestroyWindow(dpy, win), but win in this case is the newly created window that video is mapped to, not the SDL window!

[PS: I have not tried this, and there is some time I don't work with that, so I might be wrong]</description>
		<content:encoded><![CDATA[<p>You should use XDestroyWindow(dpy, win), but win in this case is the newly created window that video is mapped to, not the SDL window!</p>
<p>[PS: I have not tried this, and there is some time I don't work with that, so I might be wrong]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NDR008</title>
		<link>http://blog.gustavobarbieri.com.br/2006/11/13/playing-videos-with-mplayer-and-gstreamer-inside-sdl-applications/#comment-21144</link>
		<dc:creator>NDR008</dc:creator>
		<pubDate>Sat, 16 Aug 2008 01:16:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gustavobarbieri.com.br/?p=33#comment-21144</guid>
		<description>Cool stuff, my crap skills are getting me somewhere thanks to your work.

Could I have some help with this? I tried incorporating it into my own program (with some changes).

The main current problem I have, is when I go back to business as usual in my application, I am left with the black window made through your code. How can I remove it?

I tried XDestorySubwindows(dpy, win);

but that closes everything.</description>
		<content:encoded><![CDATA[<p>Cool stuff, my crap skills are getting me somewhere thanks to your work.</p>
<p>Could I have some help with this? I tried incorporating it into my own program (with some changes).</p>
<p>The main current problem I have, is when I go back to business as usual in my application, I am left with the black window made through your code. How can I remove it?</p>
<p>I tried XDestorySubwindows(dpy, win);</p>
<p>but that closes everything.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flowolf</title>
		<link>http://blog.gustavobarbieri.com.br/2006/11/13/playing-videos-with-mplayer-and-gstreamer-inside-sdl-applications/#comment-21106</link>
		<dc:creator>flowolf</dc:creator>
		<pubDate>Mon, 05 May 2008 17:31:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gustavobarbieri.com.br/?p=33#comment-21106</guid>
		<description>Ok, I found the problem:
with XSelectInput (dpy, win, NoEventMask); you say "ignore all events" to the X11 subwindow so changing it to XSelectInput(dpy, win, KeyPressMask); will fix the problem.
As described here http://users.actcom.co.il/~choo/lupg/tutorials/xlib-programming/xlib-programming-2.html#hierarchy_events ignoring events in a subwindow will make them pass to the parent window (the SDL window in our case) so if you ask for input events to be notified to the subwindow and then you ignore those events in the subwindow you will get the SDL parent window to recognize them.
Of course there are many event masks, take a look here http://maben.homeip.net:8217/static/computers/xwindows/xlib/10-03.html#P191_6231 and set them as you wish.</description>
		<content:encoded><![CDATA[<p>Ok, I found the problem:<br />
with XSelectInput (dpy, win, NoEventMask); you say &#8220;ignore all events&#8221; to the X11 subwindow so changing it to XSelectInput(dpy, win, KeyPressMask); will fix the problem.<br />
As described here <a href="http://users.actcom.co.il/~choo/lupg/tutorials/xlib-programming/xlib-programming-2.html#hierarchy_events" rel="nofollow">http://users.actcom.co.il/~choo/lupg/tutorials/xlib-programming/xlib-programming-2.html#hierarchy_events</a> ignoring events in a subwindow will make them pass to the parent window (the SDL window in our case) so if you ask for input events to be notified to the subwindow and then you ignore those events in the subwindow you will get the SDL parent window to recognize them.<br />
Of course there are many event masks, take a look here <a href="http://maben.homeip.net:8217/static/computers/xwindows/xlib/10-03.html#P191_6231" rel="nofollow">http://maben.homeip.net:8217/static/computers/xwindows/xlib/10-03.html#P191_6231</a> and set them as you wish.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flowolf</title>
		<link>http://blog.gustavobarbieri.com.br/2006/11/13/playing-videos-with-mplayer-and-gstreamer-inside-sdl-applications/#comment-21105</link>
		<dc:creator>flowolf</dc:creator>
		<pubDate>Mon, 05 May 2008 15:55:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gustavobarbieri.com.br/?p=33#comment-21105</guid>
		<description>Did you notice that if the mouse pointer is on the video then SDL will ignore input? I'm looking for a way to fix this...</description>
		<content:encoded><![CDATA[<p>Did you notice that if the mouse pointer is on the video then SDL will ignore input? I&#8217;m looking for a way to fix this&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tripzero</title>
		<link>http://blog.gustavobarbieri.com.br/2006/11/13/playing-videos-with-mplayer-and-gstreamer-inside-sdl-applications/#comment-17520</link>
		<dc:creator>tripzero</dc:creator>
		<pubDate>Fri, 20 Jul 2007 14:41:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gustavobarbieri.com.br/?p=33#comment-17520</guid>
		<description>Hi Gustavo,

I've been trying to figure out how to do this for a long time.  You're the best!  Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Gustavo,</p>
<p>I&#8217;ve been trying to figure out how to do this for a long time.  You&#8217;re the best!  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustavo Sverzut Barbieri</title>
		<link>http://blog.gustavobarbieri.com.br/2006/11/13/playing-videos-with-mplayer-and-gstreamer-inside-sdl-applications/#comment-482</link>
		<dc:creator>Gustavo Sverzut Barbieri</dc:creator>
		<pubDate>Wed, 07 Mar 2007 12:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gustavobarbieri.com.br/?p=33#comment-482</guid>
		<description>Guys, I moved my repository to Google Code:
http://barbieri-playground.googlecode.com/svn/sdl/

I'll edit this post to refer to new URL.</description>
		<content:encoded><![CDATA[<p>Guys, I moved my repository to Google Code:<br />
<a href="http://barbieri-playground.googlecode.com/svn/sdl/" rel="nofollow">http://barbieri-playground.googlecode.com/svn/sdl/</a></p>
<p>I&#8217;ll edit this post to refer to new URL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: psmaker</title>
		<link>http://blog.gustavobarbieri.com.br/2006/11/13/playing-videos-with-mplayer-and-gstreamer-inside-sdl-applications/#comment-467</link>
		<dc:creator>psmaker</dc:creator>
		<pubDate>Wed, 07 Mar 2007 05:55:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gustavobarbieri.com.br/?p=33#comment-467</guid>
		<description>Hi Gustavo!
This sounds interesting indeed... as your svn is still down, can you please email me the sdl/gstreamer embedding code ?

Regards,
psmaker</description>
		<content:encoded><![CDATA[<p>Hi Gustavo!<br />
This sounds interesting indeed&#8230; as your svn is still down, can you please email me the sdl/gstreamer embedding code ?</p>
<p>Regards,<br />
psmaker</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sebastian</title>
		<link>http://blog.gustavobarbieri.com.br/2006/11/13/playing-videos-with-mplayer-and-gstreamer-inside-sdl-applications/#comment-101</link>
		<dc:creator>sebastian</dc:creator>
		<pubDate>Thu, 18 Jan 2007 14:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gustavobarbieri.com.br/?p=33#comment-101</guid>
		<description>ups, your code does flawlessly, when I modified it, but mine is wrong. Sorry I keep investigating, thanks</description>
		<content:encoded><![CDATA[<p>ups, your code does flawlessly, when I modified it, but mine is wrong. Sorry I keep investigating, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sebastian</title>
		<link>http://blog.gustavobarbieri.com.br/2006/11/13/playing-videos-with-mplayer-and-gstreamer-inside-sdl-applications/#comment-100</link>
		<dc:creator>sebastian</dc:creator>
		<pubDate>Thu, 18 Jan 2007 14:22:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gustavobarbieri.com.br/?p=33#comment-100</guid>
		<description>I see, I have asked in a wrong way. I have a little mplayer window inside an SDL window. The SDL window is 640x480. When I do SDL_WM_ToggleFullScreen. The mplayer window desapears, but the audio continues playing. That is the problem. In fact, I want to go fullscreen and keep the mplayer playing inside.</description>
		<content:encoded><![CDATA[<p>I see, I have asked in a wrong way. I have a little mplayer window inside an SDL window. The SDL window is 640&#215;480. When I do SDL_WM_ToggleFullScreen. The mplayer window desapears, but the audio continues playing. That is the problem. In fact, I want to go fullscreen and keep the mplayer playing inside.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.719 seconds -->
