generic-pc: fix exporting of vdec

This commit is contained in:
Stefan Seyfried
2013-11-09 14:16:29 +01:00
parent 2dd8dd1d20
commit 8f7e6e981f

View File

@@ -71,6 +71,8 @@ cVideo::cVideo(int, void *, void *, unsigned int)
{ {
lt_debug("%s\n", __func__); lt_debug("%s\n", __func__);
vdec = new VDec(); vdec = new VDec();
/* quick hack to export private stuff to other libstb-hal modules */
::vdec = vdec;
} }
VDec::VDec() VDec::VDec()
@@ -391,9 +393,9 @@ void cVideo::getPictureInfo(int &width, int &height, int &rate)
void VDec::getPictureInfo(int &width, int &height, int &rate) void VDec::getPictureInfo(int &width, int &height, int &rate)
{ {
width = vdec->dec_w; width = dec_w;
height = vdec->dec_h; height = dec_h;
rate = vdec->dec_r; rate = dec_r;
} }
void cVideo::SetSyncMode(AVSYNC_TYPE) void cVideo::SetSyncMode(AVSYNC_TYPE)