summaryrefslogtreecommitdiff
authorkui.zhang <kui.zhang@amlogic.com>2012-09-13 10:44:02 (GMT)
committer kui.zhang <kui.zhang@amlogic.com>2012-09-13 10:44:02 (GMT)
commit474e96c31b1d0247563fd6cb4d5747ea7381bd18 (patch)
tree1a8108b733e57bd55e86c54f6b077a6d99fd4f0e
parentec85d515ae90596d34e94bad55391e2cbf826cfa (diff)
downloadlibzvbi-474e96c31b1d0247563fd6cb4d5747ea7381bd18.zip
libzvbi-474e96c31b1d0247563fd6cb4d5747ea7381bd18.tar.gz
libzvbi-474e96c31b1d0247563fd6cb4d5747ea7381bd18.tar.bz2
modify xds callback
Diffstat
-rwxr-xr-xntsc_decode/am_vbi.c5
-rwxr-xr-xntsc_decode/include/am_vbi.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/ntsc_decode/am_vbi.c b/ntsc_decode/am_vbi.c
index c66ab06..a34b719 100755
--- a/ntsc_decode/am_vbi.c
+++ b/ntsc_decode/am_vbi.c
@@ -137,7 +137,8 @@ static void vbi_xds_handler (vbi_event * ev, void * user_data)
if(ev == NULL)
return;
vbi_program_info * prog_info = ev->ev.prog_info;
- vbi_xds_subclass_program xds_program;
+
+ vbi_xds_subclass_program xds_program = 0;
switch(ev->type)
{
case VBI_EVENT_ASPECT :
@@ -262,7 +263,7 @@ static void vbi_xds_handler (vbi_event * ev, void * user_data)
}
- parser->xds_para.xds_callback(parser,xds_program,prog_info);
+ parser->xds_para.xds_callback(parser,xds_program,*prog_info);
}
diff --git a/ntsc_decode/include/am_vbi.h b/ntsc_decode/include/am_vbi.h
index 68d4418..a2851f8 100755
--- a/ntsc_decode/include/am_vbi.h
+++ b/ntsc_decode/include/am_vbi.h
@@ -61,7 +61,7 @@ typedef void (*AM_VBI_CC_DrawBegin_t)(AM_VBI_Handle_t handle);
typedef void (*AM_VBI_CC_DrawEnd_t)(AM_VBI_Handle_t handle);
/**\brief notify xds data*/
-typedef void (*AM_VBI_xds_callback_t)(AM_VBI_Handle_t handle, vbi_xds_subclass_program xds_program,vbi_program_info * prog_info);
+typedef void (*AM_VBI_xds_callback_t)(AM_VBI_Handle_t handle, vbi_xds_subclass_program xds_program,vbi_program_info prog_info);
typedef struct
{