Dash:
[t2-trunk.git] / package / contrib / dfb-extra / ffmpeg-url.patch
blob028186d6fed2fd015b29027f48a2b283e9be27e7
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../dfb-extra/ffmpeg-url.patch
5 # Copyright (C) 2008 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
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
14 # version.
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
19 @@ -412,7 +412,7 @@
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 );
28 @@ -438,7 +438,7 @@
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 );
37 @@ -473,7 +473,7 @@
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 );
46 @@ -481,7 +481,7 @@
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 );