Update of /cvsroot/toxine/toxine/src
In directory usw-pr-cvs1:/tmp/cvs-serv20351/src
Modified Files:
commands.c
Log Message:
Add get/set video fullscreen.
Index: commands.c
===================================================================
RCS file: /cvsroot/toxine/toxine/src/commands.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- commands.c 13 Jun 2002 12:06:45 -0000 1.4
+++ commands.c 21 Jun 2002 08:57:25 -0000 1.5
@@ -141,6 +141,7 @@
{ "set", OPTIONAL_ARGS, do_set,
"Set some internal values.",
"set video driver <name>\n"
+ "set video fullscreen\n"
"set video property <property> <value> (see xine_set_video_property)\n"
"set audio driver <name>\n"
"set audio volume <level>\n"
@@ -156,6 +157,7 @@
"get audio driver\n"
"get audio capabilities\n"
"get video capabilities\n"
+ "get video fullscreen\n"
"get video property <property> (see xine_get_video_property)\n"
"get video property_min_max <property> (see xine_get_video_property_min_max)\n",
},
@@ -773,6 +775,17 @@
if(toxine_is_arg_contain(tox, 2, "capabilities")) {
_NAPI_xine_get_video_capabilities(NULL, tox, NULL);
}
+ else if(toxine_is_arg_contain(tox, 2, "fullscreen")) {
+ int fullscreen;
+ CHECK_XINE(tox);
+ if(tox->video.cur_plugin->is_fullscreen) {
+ fullscreen = tox->video.cur_plugin->is_fullscreen(tox, tox->video.cur_plugin);
+ pinfo("fullscreen is %d\n", fullscreen);
+ pinfo(".\n");
+ }
+ else
+ pout("fullscreen isn't supported by video plugin\n");
+ }
}
else if(nargs >= 3) {
@@ -855,6 +868,11 @@
pinfo("current video driver name: %s\n",
(tox->video.name)?tox->video.name:"unset");
}
+ }
+ else if(toxine_is_arg_contain(tox, 2, "fullscreen")) {
+ CHECK_XINE(tox);
+ if(tox->video.cur_plugin->fullscreen)
+ tox->video.cur_plugin->fullscreen(tox, tox->video.cur_plugin);
}
}
}
|