Skip to content

Commit

Permalink
change to opengl render
Browse files Browse the repository at this point in the history
Signed-off-by: Jack <[email protected]>
  • Loading branch information
Jackarain committed Mar 15, 2013
1 parent afc8e58 commit 513182d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions win32/avplayer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ int main(int argc, char* argv[])
std::string ext = extension<std::string>(filename);
if (ext == ".torrent")
{
if (!win.open(filename.c_str(), MEDIA_TYPE_BT))
if (!win.open(filename.c_str(), MEDIA_TYPE_BT, RENDER_OGL))
return -1;
}
else
Expand All @@ -80,23 +80,23 @@ int main(int argc, char* argv[])
std::string::size_type pos = str.find("http://v.youku.com/v_show/id_");
if (pos == std::string::npos)
{
if (!win.open(filename.c_str(), MEDIA_TYPE_HTTP))
if (!win.open(filename.c_str(), MEDIA_TYPE_HTTP, RENDER_OGL))
return -1;
}
else
{
if (!win.open(filename.c_str(), MEDIA_TYPE_YK))
if (!win.open(filename.c_str(), MEDIA_TYPE_YK, RENDER_OGL))
return -1;
}
}
else if (is_url == "rtsp://")
{
if (!win.open(filename.c_str(), MEDIA_TYPE_RTSP))
if (!win.open(filename.c_str(), MEDIA_TYPE_RTSP, RENDER_OGL))
return -1;
}
else
{
if (!win.open(filename.c_str(), MEDIA_TYPE_FILE))
if (!win.open(filename.c_str(), MEDIA_TYPE_FILE, RENDER_OGL))
return -1;
}
}
Expand Down

0 comments on commit 513182d

Please sign in to comment.