Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_25606643
ijkplayer
提交
6e0a693d
I
ijkplayer
项目概览
qq_25606643
/
ijkplayer
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
ijkplayer
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6e0a693d
编写于
6月 07, 2013
作者:
Z
Zhang Rui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
jni: ijkplayer: introduce SDL_CreateThreadEx
上级
4a1aff85
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
7 addition
and
12 deletion
+7
-12
ijkmediaplayer/jni/ijkplayer/ffplay_def.h
ijkmediaplayer/jni/ijkplayer/ffplay_def.h
+3
-0
ijkmediaplayer/jni/ijkplayer/ffplay_read_thread.c
ijkmediaplayer/jni/ijkplayer/ffplay_read_thread.c
+2
-2
ijkmediaplayer/jni/ijksdl/ijksdl_thread.c
ijkmediaplayer/jni/ijksdl/ijksdl_thread.c
+2
-9
ijkmediaplayer/jni/ijksdl/ijksdl_thread.h
ijkmediaplayer/jni/ijksdl/ijksdl_thread.h
+0
-1
未找到文件。
ijkmediaplayer/jni/ijkplayer/ffplay_def.h
浏览文件 @
6e0a693d
...
...
@@ -115,7 +115,9 @@ enum {
typedef
struct
VideoState
{
SDL_Thread
*
read_tid
;
SDL_Thread
_read_tid
;
SDL_Thread
*
video_tid
;
SDL_Thread
_video_tid
;
AVInputFormat
*
iformat
;
int
no_background
;
int
abort_request
;
...
...
@@ -180,6 +182,7 @@ typedef struct VideoState {
double
last_vis_time
;
SDL_Thread
*
subtitle_tid
;
SDL_Thread
_subtitle_tid
;
int
subtitle_stream
;
int
subtitle_stream_changed
;
AVStream
*
subtitle_st
;
...
...
ijkmediaplayer/jni/ijkplayer/ffplay_read_thread.c
浏览文件 @
6e0a693d
...
...
@@ -591,14 +591,14 @@ static int stream_component_open(FFPlayer *ffp, int stream_index)
is
->
video_st
=
ic
->
streams
[
stream_index
];
packet_queue_start
(
&
is
->
videoq
);
is
->
video_tid
=
SDL_CreateThread
(
ijkff_video_thread
,
ffp
);
is
->
video_tid
=
SDL_CreateThread
Ex
(
&
is
->
_video_tid
,
ijkff_video_thread
,
ffp
);
break
;
case
AVMEDIA_TYPE_SUBTITLE
:
is
->
subtitle_stream
=
stream_index
;
is
->
subtitle_st
=
ic
->
streams
[
stream_index
];
packet_queue_start
(
&
is
->
subtitleq
);
is
->
subtitle_tid
=
SDL_CreateThread
(
ijkff_subtitle_thread
,
ffp
);
is
->
subtitle_tid
=
SDL_CreateThread
Ex
(
&
is
->
_subtitle_tid
,
ijkff_subtitle_thread
,
ffp
);
break
;
default:
break
;
...
...
ijkmediaplayer/jni/ijksdl/ijksdl_thread.c
浏览文件 @
6e0a693d
...
...
@@ -32,20 +32,13 @@ static void *SDL_RunThread(void *data)
return
NULL
;
}
SDL_Thread
*
SDL_CreateThread
(
int
(
*
fn
)(
void
*
),
void
*
data
)
{
// FIXME: imeplement
return
NULL
;
}
SDL_Thread
*
SDL_CreateThreadEx
(
SDL_Thread
*
thread
,
int
(
*
fn
)(
void
*
),
void
*
data
)
{
thread
->
func
=
fn
;
thread
->
data
=
data
;
thread
->
retval
=
0
;
if
(
pthread_create
(
&
thread
->
id
,
NULL
,
SDL_RunThread
,
thread
)
!=
0
)
{
int
retval
=
pthread_create
(
&
thread
->
id
,
NULL
,
SDL_RunThread
,
data
)
;
if
(
retval
)
return
NULL
;
}
return
thread
;
}
...
...
ijkmediaplayer/jni/ijksdl/ijksdl_thread.h
浏览文件 @
6e0a693d
...
...
@@ -35,7 +35,6 @@ typedef struct SDL_Thread
int
retval
;
}
SDL_Thread
;
SDL_Thread
*
SDL_CreateThread
(
int
(
*
fn
)(
void
*
),
void
*
data
);
SDL_Thread
*
SDL_CreateThreadEx
(
SDL_Thread
*
thread
,
int
(
*
fn
)(
void
*
),
void
*
data
);
void
SDL_WaitThread
(
SDL_Thread
*
thread
,
int
*
status
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录