找回密码
 注册
搜索
热搜: 回贴
  • 前程无忧官网首页 有什么好的平台可以
  • 最新的销售平台 互联网营销的平台有哪
  • 制作网页的基本流程 网页制作和网页设
  • 【帝国CMS】输出带序号的列表(数字排
  • 网站建设公司 三一,中联,极东泵车的
  • 织梦 建站 织梦网站模版后台怎么更改
  • 云服务官网 哪些网站有免费的简历模板
  • 如何建网站要什么条件 建网站要用什么
  • 吉林市移动公司电话 吉林省退休人员网
  • 设计类毕业论文 网站设计与实现毕业论
查看: 974|回复: 0

这段代码谁帮忙解释下~~~~~~~~~~~

[复制链接]
发表于 2009-11-4 01:11:17 | 显示全部楼层 |阅读模式 IP:江苏扬州
#include "Mp4ProxySrc.h"

#define MSG_CLOSE   MSG_USR_DEFINE1
#define MSG_INIT    MSG_USR_DEFINE2
#define MSG_PLAY    MSG_USR_DEFINE3

Mp4ProxySrc::Mp4ProxySrc()
    :m_session(NULL),
     m_invalid(false),
     m_pts_us(0),
     m_prebuf_us(0),
     m_speed(1.0),
     m_i_frame(false),
     m_conn_fd(-1)
{
    memset( m_content, 0, sizeof(m_content) );
}

Mp4ProxySrc::~Mp4ProxySrc()
{
    DEL_CLIENT_OBJ(m_session);
    if( GetWorkEnv() != NULL )
        leave_uwe();
}

void Mp4ProxySrc::Close()
{
    notify_int( GetUTOID(), MSG_CLOSE, 0 );
}

int Mp4ProxySrc::Init( const char* content )
{
    ASSERT( content != NULL );
    strncpy( m_content, content, sizeof(m_content)-1 );
    m_invalid = false;
    notify_int( GetUTOID(), MSG_INIT, 0 );
    ASSERT( content != NULL );
    strncpy( m_content, content, sizeof(m_content)-1 );
    m_invalid = false;
    notify_int( GetUTOID(), MSG_INIT, 0 );
    return 0;
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-10-1 01:26 , Processed in 0.230231 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表