libeplayer3: cleanup types

Origin commit data
------------------
Branch: master
Commit: e5237866c4
Author: martii <m4rtii@gmx.de>
Date: 2014-04-05 (Sat, 05 Apr 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2014-04-05 10:01:52 +02:00
parent 46d3eb1c68
commit a33e7bfbd6
30 changed files with 68 additions and 91 deletions

View File

@@ -41,9 +41,8 @@ if (debug_level >= level) printf(x); } while (0)
#define container_err(x...)
#endif
static int Command(void *_context, ContainerCmd_t command, void *argument __attribute__((unused)))
static int Command(Context_t *context, ContainerCmd_t command, void *argument __attribute__((unused)))
{
Context_t *context = (Context_t *) _context;
int ret = 0;
container_printf(10, "%s::%s\n", __FILE__, __func__);

View File

@@ -39,12 +39,6 @@
#include <pthread.h>
#include <sys/prctl.h>
#include <libavutil/avutil.h>
#include <libavutil/time.h>
#include <libavformat/avformat.h>
#include <libswresample/swresample.h>
#include <libavutil/opt.h>
#include "common.h"
#include "misc.h"
#include "debug.h"
@@ -450,7 +444,7 @@ static void FFMPEGThread(Context_t * context)
while (packet_size > 0) {
int got_frame = 0;
if (!decoded_frame) {
if (!(decoded_frame = avcodec_alloc_frame())) {
if (!(decoded_frame = av_frame_alloc())) {
fprintf(stderr, "out of memory\n");
exit(1);
}
@@ -1430,9 +1424,8 @@ static int container_ffmpeg_get_metadata(Context_t * context, char ***p)
return cERR_CONTAINER_FFMPEG_NO_ERROR;
}
static int Command(void *_context, ContainerCmd_t command, void *argument)
static int Command(Context_t *context, ContainerCmd_t command, void *argument)
{
Context_t *context = (Context_t *) _context;
int ret = cERR_CONTAINER_FFMPEG_NO_ERROR;
ffmpeg_printf(50, "Command %d\n", command);