[xiph-commits] r2874 - in liboggplay/trunk: include/oggplay plugin
plugin/audio src/liboggplay
tahn at svn.annodex.net
tahn at svn.annodex.net
Thu Jun 7 22:20:34 PDT 2007
Author: tahn
Date: 2007-06-07 22:20:33 -0700 (Thu, 07 Jun 2007)
New Revision: 2874
Modified:
liboggplay/trunk/include/oggplay/oggplay_tools.h
liboggplay/trunk/plugin/audio/sydney_audio_mac.c
liboggplay/trunk/plugin/plugin_gui_mac.c
liboggplay/trunk/plugin/plugin_oggplay.c
liboggplay/trunk/src/liboggplay/oggplay.c
liboggplay/trunk/src/liboggplay/oggplay_file_reader.h
liboggplay/trunk/src/liboggplay/oggplay_private.h
Log:
Minor typos and warnings removed.
Modified: liboggplay/trunk/include/oggplay/oggplay_tools.h
===================================================================
--- liboggplay/trunk/include/oggplay/oggplay_tools.h 2007-06-08 05:19:49 UTC (rev 2873)
+++ liboggplay/trunk/include/oggplay/oggplay_tools.h 2007-06-08 05:20:33 UTC (rev 2874)
@@ -69,7 +69,7 @@
oggplay_yuv2bgr(OggPlayYUVChannels* yuv, OggPlayRGBChannels * rgb);
ogg_int64_t
-oggplay_sys_time_in_ms();
+oggplay_sys_time_in_ms(void);
void
oggplay_millisleep(long ms);
Modified: liboggplay/trunk/plugin/audio/sydney_audio_mac.c
===================================================================
--- liboggplay/trunk/plugin/audio/sydney_audio_mac.c 2007-06-08 05:19:49 UTC (rev 2873)
+++ liboggplay/trunk/plugin/audio/sydney_audio_mac.c 2007-06-08 05:20:33 UTC (rev 2874)
@@ -98,7 +98,7 @@
static OSStatus audio_callback(void *arg, AudioUnitRenderActionFlags *action_flags,
const AudioTimeStamp *time_stamp, UInt32 bus_num, UInt32 n_frames, AudioBufferList *data);
-static sa_buf *new_buffer();
+static sa_buf *new_buffer(void);
/*
@@ -139,7 +139,7 @@
if ((s = malloc(sizeof(sa_stream_t))) == NULL) {
return SA_ERROR_OOM;
}
- if ((s->bl_head = new_buffer(s)) == NULL) {
+ if ((s->bl_head = new_buffer()) == NULL) {
free(s);
return SA_ERROR_OOM;
}
@@ -369,7 +369,7 @@
/*
* Allocate a new tail buffer, and go 'round again to fill it up.
*/
- if ((s->bl_tail->next = new_buffer(s)) == NULL) {
+ if ((s->bl_tail->next = new_buffer()) == NULL) {
result = SA_ERROR_OOM;
break;
}
@@ -623,7 +623,7 @@
static sa_buf *
-new_buffer() {
+new_buffer(void) {
sa_buf * b = malloc(sizeof(sa_buf) + BUF_SIZE);
if (b != NULL) {
b->size = BUF_SIZE;
Modified: liboggplay/trunk/plugin/plugin_gui_mac.c
===================================================================
--- liboggplay/trunk/plugin/plugin_gui_mac.c 2007-06-08 05:19:49 UTC (rev 2873)
+++ liboggplay/trunk/plugin/plugin_gui_mac.c 2007-06-08 05:20:33 UTC (rev 2874)
@@ -352,7 +352,7 @@
bool paused = FALSE;
bool drop_video_frame = FALSE;
int64_t playback_target = 0;
- int64_t time_ref;
+ int64_t time_ref = 0;
int64_t cur_time;
int64_t offset;
int64_t bytes;
Modified: liboggplay/trunk/plugin/plugin_oggplay.c
===================================================================
--- liboggplay/trunk/plugin/plugin_oggplay.c 2007-06-08 05:19:49 UTC (rev 2873)
+++ liboggplay/trunk/plugin/plugin_oggplay.c 2007-06-08 05:20:33 UTC (rev 2874)
@@ -472,7 +472,6 @@
(*url) = NULL;
if (pointers->location != NULL) {
size_t length = strlen(pointers->location) + 1;
- PluginPointers *pointers = (PluginPointers *)handle;
(*url) = NPN_MemAlloc((uint32)length);
memcpy((*url), pointers->location, length);
}
Modified: liboggplay/trunk/src/liboggplay/oggplay.c
===================================================================
--- liboggplay/trunk/src/liboggplay/oggplay.c 2007-06-08 05:19:49 UTC (rev 2873)
+++ liboggplay/trunk/src/liboggplay/oggplay.c 2007-06-08 05:20:33 UTC (rev 2874)
@@ -535,7 +535,7 @@
ogg_int64_t
-oggplay_sys_time_in_ms() {
+oggplay_sys_time_in_ms(void) {
#ifdef WIN32
FILETIME ft;
GetSystemTimeAsFileTime(&ft);
Modified: liboggplay/trunk/src/liboggplay/oggplay_file_reader.h
===================================================================
--- liboggplay/trunk/src/liboggplay/oggplay_file_reader.h 2007-06-08 05:19:49 UTC (rev 2873)
+++ liboggplay/trunk/src/liboggplay/oggplay_file_reader.h 2007-06-08 05:20:33 UTC (rev 2874)
@@ -31,13 +31,14 @@
*/
/*
- * oggsync_file_reader.h
+ * oggplay_file_reader.h
*
* Shane Stephens <shane.stephens at annodex.net>
+ * Michael Martin
*/
-#ifndef __OGGSYNC_FILE_READER_H__
-#define __OGGSYNC_FILE_READER_H__
+#ifndef __OGGPLAY_FILE_READER_H__
+#define __OGGPLAY_FILE_READER_H__
#include <stdio.h>
Modified: liboggplay/trunk/src/liboggplay/oggplay_private.h
===================================================================
--- liboggplay/trunk/src/liboggplay/oggplay_private.h 2007-06-08 05:19:49 UTC (rev 2873)
+++ liboggplay/trunk/src/liboggplay/oggplay_private.h 2007-06-08 05:20:33 UTC (rev 2874)
@@ -34,9 +34,10 @@
* oggplay_private.h
*
* Shane Stephens <shane.stephens at annodex.net>
+ * Michael Martin
*/
-#ifndef __OGGSYNC_PRIVATE_H__
-#define __OGGSYNC_PRIVATE_H__
+#ifndef __OGGPLAY_PRIVATE_H__
+#define __OGGPLAY_PRIVATE_H__
#include <oggplay/oggplay.h>
More information about the commits
mailing list