Dash:
[t2.git] / package / multimedia / mythtv / directfb-directresult.patch
blob5e0840bce0020b32ea84b8dd905932514104d5de
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../mythtv/directfb-directresult.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 --- mythtv-0.21/libs/libmythtv/videoout_directfb.cpp.orig 2008-03-08 01:07:31.000000000 +0100
18 +++ mythtv-0.21/libs/libmythtv/videoout_directfb.cpp 2008-09-10 09:34:58.000000000 +0200
19 @@ -141,8 +141,7 @@
20 if (DFB_OK != fberr)
22 VERBOSE(VB_IMPORTANT, LOC_ERR + "Failed to lock buffer" + ENOFB);
23 - fberr = bufferSurface->Release(bufferSurface);
24 - if (DFB_OK != fberr)
25 + if (bufferSurface->Release(bufferSurface) != DR_OK)
27 VERBOSE(VB_IMPORTANT, LOC_ERR +
28 "Failed to release buffer" + ENOFB);
29 @@ -198,8 +197,7 @@
30 "Failed to unlock buffer" + ENOFB);
33 - fberr = surf->Release(surf);
34 - if (DFB_OK != fberr)
35 + if (surf->Release(surf) != DR_OK)
37 VERBOSE(VB_IMPORTANT, LOC_ERR +
38 "Failed to release buffer" + ENOFB);
39 @@ -244,8 +242,7 @@
40 "Failed to unlock buffer" + ENOFB);
43 - fberr = surf->Release(surf);
44 - if (DFB_OK != fberr)
45 + if (surf->Release(surf) != DR_OK)
47 VERBOSE(VB_IMPORTANT, LOC_ERR +
48 "Failed to release buffer" + ENOFB);
49 @@ -1121,8 +1118,7 @@
51 VERBOSE(VB_IMPORTANT, LOC_WARN + "Failed to test config" + ENOFB);
53 - fberr = vodata->videoLayer->Release(vodata->videoLayer);
54 - if (DFB_OK != fberr)
55 + if (vodata->videoLayer->Release(vodata->videoLayer) != DR_OK)
57 VERBOSE(VB_IMPORTANT, LOC_ERR +
58 "Failed to release display layer" + ENOFB);