[vlc-commits] vdpau_avcodec: remove forward declarations
Rémi Denis-Courmont
git at videolan.org
Thu Apr 23 20:42:15 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Apr 23 21:28:14 2015 +0300| [81ed30c9a602cd49d63eec1c7dbe47ff3207bd88] | committer: Rémi Denis-Courmont
vdpau_avcodec: remove forward declarations
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=81ed30c9a602cd49d63eec1c7dbe47ff3207bd88
---
modules/hw/vdpau/avcodec.c | 21 +++++++++------------
1 file changed, 9 insertions(+), 12 deletions(-)
diff --git a/modules/hw/vdpau/avcodec.c b/modules/hw/vdpau/avcodec.c
index 525e81e..c83e49f 100644
--- a/modules/hw/vdpau/avcodec.c
+++ b/modules/hw/vdpau/avcodec.c
@@ -39,18 +39,6 @@
#include "vlc_vdpau.h"
#include "../../codec/avcodec/va.h"
-static int Open(vlc_va_t *, AVCodecContext *, const es_format_t *);
-static void Close(vlc_va_t *, AVCodecContext *);
-
-vlc_module_begin()
- set_description(N_("VDPAU video decoder"))
- set_capability("hw decoder", 100)
- set_category(CAT_INPUT)
- set_subcategory(SUBCAT_INPUT_VCODEC)
- set_callbacks(Open, Close)
- add_shortcut("vdpau")
-vlc_module_end()
-
struct vlc_va_sys_t
{
vdp_t *vdp;
@@ -417,3 +405,12 @@ static void Close(vlc_va_t *va, AVCodecContext *avctx)
av_freep(&avctx->hwaccel_context);
free(sys);
}
+
+vlc_module_begin()
+ set_description(N_("VDPAU video decoder"))
+ set_capability("hw decoder", 100)
+ set_category(CAT_INPUT)
+ set_subcategory(SUBCAT_INPUT_VCODEC)
+ set_callbacks(Open, Close)
+ add_shortcut("vdpau")
+vlc_module_end()
More information about the vlc-commits
mailing list