From 70f58d2cf5187af05ddebd293d4079e513687588 Mon Sep 17 00:00:00 2001 From: martii Date: Sun, 6 Apr 2014 11:39:11 +0200 Subject: [PATCH] libeplayer3: remove unused code --- libeplayer3/include/output.h | 13 ------------- libeplayer3/output/output.cpp | 28 ---------------------------- 2 files changed, 41 deletions(-) diff --git a/libeplayer3/include/output.h b/libeplayer3/include/output.h index 425b82e..1819cf0 100644 --- a/libeplayer3/include/output.h +++ b/libeplayer3/include/output.h @@ -16,7 +16,6 @@ typedef enum { OUTPUT_INIT, OUTPUT_ADD, OUTPUT_DEL, - OUTPUT_CAPABILITIES, OUTPUT_PLAY, OUTPUT_STOP, OUTPUT_PAUSE, @@ -35,18 +34,6 @@ typedef enum { OUTPUT_GET_FRAME_COUNT, } OutputCmd_t; -typedef struct { - int restart_audio_resampling; - - int64_t pts; - - const char *type; - - AVFormatContext *avfc; - AVStream *stream; - AVPacket *packet; -} AudioVideoOut_t; - struct Context_s; typedef struct Context_s Context_t; diff --git a/libeplayer3/output/output.cpp b/libeplayer3/output/output.cpp index a225a1c..d857408 100644 --- a/libeplayer3/output/output.cpp +++ b/libeplayer3/output/output.cpp @@ -68,30 +68,6 @@ static Output_t *AvailableOutput[] = { NULL }; -/* ***************************** */ -/* Prototypes */ -/* ***************************** */ - -/* ***************************** */ -/* MISC Functions */ -/* ***************************** */ - -static void printOutputCapabilities() -{ - int i, j; - - output_printf(10, "%s::%s\n", FILENAME, __FUNCTION__); - output_printf(10, "Capabilities:\n"); - - for (i = 0; AvailableOutput[i] != NULL; i++) { - output_printf(10, "\t%s : ", AvailableOutput[i]->Name); - - for (j = 0; AvailableOutput[i]->Capabilities[j] != NULL; j++) - output_printf(10, "%s ", AvailableOutput[i]->Capabilities[j]); - output_printf(10, "\n"); - } -} - /* ***************************** */ /* Output Functions */ /* ***************************** */ @@ -163,10 +139,6 @@ static int Command(Context_t *context, OutputCmd_t command, const char *argument OutputDel(context, (char *) argument); break; } - case OUTPUT_CAPABILITIES:{ - printOutputCapabilities(); - break; - } case OUTPUT_PLAY:{ // 4 if (context && context->playback) { if (context->playback->isVideo)