1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../dfb-extra/ffmpeg-url.patch
5 # Copyright (C) 2008 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- DirectFB-extra.git/interfaces/IDirectFBVideoProvider/idirectfbvideoprovider_ffmpeg.c.orig 2008-01-21 15:55:01.000000000 +0100
18 +++ DirectFB-extra.git/interfaces/IDirectFBVideoProvider/idirectfbvideoprovider_ffmpeg.c 2008-01-21 17:54:13.000000000 +0100
21 IDirectFBVideoProvider_FFmpeg_data *data = arg;
23 - if (url_is_streamed( data->context->pb )) {
24 + if (url_is_streamed( &data->pb )) {
25 data->input.buffering = true;
26 pthread_mutex_lock( &data->video.queue.lock );
27 pthread_mutex_lock( &data->audio.queue.lock );
29 flush_packets( &data->video.queue );
30 flush_packets( &data->audio.queue );
31 if (!data->input.buffering &&
32 - url_is_streamed( data->context->pb )) {
33 + url_is_streamed( &data->pb )) {
34 data->input.buffering = true;
35 pthread_mutex_lock( &data->video.queue.lock );
36 pthread_mutex_lock( &data->audio.queue.lock );
38 else if (data->video.queue.size == 0 ||
39 data->audio.queue.size == 0) {
40 if (!data->input.buffering &&
41 - url_is_streamed( data->context->pb )) {
42 + url_is_streamed( &data->pb )) {
43 data->input.buffering = true;
44 pthread_mutex_lock( &data->video.queue.lock );
45 pthread_mutex_lock( &data->audio.queue.lock );
49 if (av_read_frame( data->context, &packet ) < 0) {
50 - if (url_feof( data->context->pb )) {
51 + if (url_feof( &data->pb )) {
52 if (data->input.buffering) {
53 pthread_mutex_unlock( &data->audio.queue.lock );
54 pthread_mutex_unlock( &data->video.queue.lock );