[xiph-commits] r3078 - liboggplay/trunk/plugin
tahn at svn.annodex.net
tahn at svn.annodex.net
Tue Jun 26 21:03:15 PDT 2007
Author: tahn
Date: 2007-06-26 21:03:15 -0700 (Tue, 26 Jun 2007)
New Revision: 3078
Modified:
liboggplay/trunk/plugin/plugin_gui_mac.c
Log:
Implemented get width and height, couple of other aesthetic changes.
Modified: liboggplay/trunk/plugin/plugin_gui_mac.c
===================================================================
--- liboggplay/trunk/plugin/plugin_gui_mac.c 2007-06-27 02:12:55 UTC (rev 3077)
+++ liboggplay/trunk/plugin/plugin_gui_mac.c 2007-06-27 04:03:15 UTC (rev 3078)
@@ -40,10 +40,7 @@
#include <oggplay/oggplay_tools.h>
/*
- * PluginWindowInfo is written to by the main thread, and read from by
- * the display thread (except for the synchronisation flags and
- * semaphores, which both threads can read and write).
- *
+ * PluginWindowInfo is used by both the main thread and the display thread.
* ThreadData is used only by the display thread.
*/
@@ -417,7 +414,7 @@
get_oggplay_frame(info->oggplay_handle, &td.frame_data);
/*
- * Retrieve the latest oggplay stream info and update accordingly.
+ * Retrieve the latest oggplay status and update accordingly.
*/
switch (get_oggplay_stream_info(info->oggplay_handle, &td.frame_data)) {
case OGGPLAY_STREAM_JUST_SEEKED:
@@ -661,7 +658,6 @@
SEM_WAIT(info->oggplay_replace_sem);
if (info->new_oggplay_handle != NULL) {
- printf("early shutting aborted oggplay at %p\n", info->new_oggplay_handle);
shut_oggplay(info->new_oggplay_handle);
}
info->new_oggplay_handle = oggplay_handle;
@@ -737,23 +733,19 @@
//!todo
}
-
float
gui_get_volume(void *gui_handle) {
//!todo
return 0.0f;
}
-
long
gui_get_window_width(void *gui_handle) {
-//!todo
- return 0;
+ return ((PluginWindowInfo *)gui_handle)->media_width;
}
-
long
gui_get_window_height(void *gui_handle) {
-//!todo
- return 0;
+ return ((PluginWindowInfo *)gui_handle)->media_height;
}
+
More information about the commits
mailing list