Merge pull request #533 from sorayuki/patch-1
libff: Fix a race condition crash when handling clocks
This commit is contained in:
commit
674706ac6e
4
deps/libff/libff/ff-demuxer.c
vendored
4
deps/libff/libff/ff-demuxer.c
vendored
@ -344,15 +344,15 @@ void ff_demuxer_reset(struct ff_demuxer *demuxer)
|
||||
packet.clock = clock;
|
||||
|
||||
if (demuxer->audio_decoder != NULL) {
|
||||
ff_clock_retain(clock);
|
||||
packet_queue_put(&demuxer->audio_decoder->packet_queue,
|
||||
&packet);
|
||||
ff_clock_retain(clock);
|
||||
}
|
||||
|
||||
if (demuxer->video_decoder != NULL) {
|
||||
ff_clock_retain(clock);
|
||||
packet_queue_put(&demuxer->video_decoder->packet_queue,
|
||||
&packet);
|
||||
ff_clock_retain(clock);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user