summaryrefslogtreecommitdiff
path: root/multimedia/gst-plugins0.10-bad/patches/patch-ab
blob: c5d591ac287984d0efdedcd9eb54919893aaa817 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
$NetBSD: patch-ab,v 1.6 2010/03/15 14:16:03 joerg Exp $

Workaround broken NULL definition on NetBSD <= 5.0

--- gst/qtmux/gstqtmoovrecover.c.orig	2010-03-15 14:08:25.000000000 +0000
+++ gst/qtmux/gstqtmoovrecover.c
@@ -188,19 +188,19 @@ gst_qt_moov_recover_run (void *data)
   if (qtmr->broken_input == NULL) {
     GST_OBJECT_UNLOCK (qtmr);
     GST_ELEMENT_ERROR (qtmr, RESOURCE, SETTINGS,
-        ("Please set broken-input property"), NULL);
+        ("Please set broken-input property"), (NULL));
     goto end;
   }
   if (qtmr->recovery_input == NULL) {
     GST_OBJECT_UNLOCK (qtmr);
     GST_ELEMENT_ERROR (qtmr, RESOURCE, SETTINGS,
-        ("Please set recovery-input property"), NULL);
+        ("Please set recovery-input property"), (NULL));
     goto end;
   }
   if (qtmr->fixed_output == NULL) {
     GST_OBJECT_UNLOCK (qtmr);
     GST_ELEMENT_ERROR (qtmr, RESOURCE, SETTINGS,
-        ("Please set fixed-output property"), NULL);
+        ("Please set fixed-output property"), (NULL));
     goto end;
   }
 
@@ -210,7 +210,7 @@ gst_qt_moov_recover_run (void *data)
   if (moovrec == NULL) {
     GST_OBJECT_UNLOCK (qtmr);
     GST_ELEMENT_ERROR (qtmr, RESOURCE, OPEN_READ,
-        ("Failed to open recovery-input file"), NULL);
+        ("Failed to open recovery-input file"), (NULL));
     goto end;
   }
 
@@ -218,14 +218,14 @@ gst_qt_moov_recover_run (void *data)
   if (mdatinput == NULL) {
     GST_OBJECT_UNLOCK (qtmr);
     GST_ELEMENT_ERROR (qtmr, RESOURCE, OPEN_READ,
-        ("Failed to open broken-input file"), NULL);
+        ("Failed to open broken-input file"), (NULL));
     goto end;
   }
   output = g_fopen (qtmr->fixed_output, "wb+");
   if (output == NULL) {
     GST_OBJECT_UNLOCK (qtmr);
     GST_ELEMENT_ERROR (qtmr, RESOURCE, OPEN_READ_WRITE,
-        ("Failed to open fixed-output file"), NULL);
+        ("Failed to open fixed-output file"), (NULL));
     goto end;
   }
   GST_OBJECT_UNLOCK (qtmr);
@@ -236,14 +236,14 @@ gst_qt_moov_recover_run (void *data)
   mdatinput = NULL;
   if (mdat_recov == NULL) {
     GST_ELEMENT_ERROR (qtmr, RESOURCE, FAILED,
-        ("Broken file could not be parsed correctly"), NULL);
+        ("Broken file could not be parsed correctly"), (NULL));
     goto end;
   }
   moov_recov = moov_recov_file_create (moovrec, &err);
   moovrec = NULL;
   if (moov_recov == NULL) {
     GST_ELEMENT_ERROR (qtmr, RESOURCE, FAILED,
-        ("Recovery file could not be parsed correctly"), NULL);
+        ("Recovery file could not be parsed correctly"), (NULL));
     goto end;
   }
 
@@ -265,7 +265,7 @@ gst_qt_moov_recover_run (void *data)
 end:
   GST_LOG_OBJECT (qtmr, "Finalizing task");
   if (err) {
-    GST_ELEMENT_ERROR (qtmr, RESOURCE, FAILED, (err->message), NULL);
+    GST_ELEMENT_ERROR (qtmr, RESOURCE, FAILED, (err->message), (NULL));
     g_error_free (err);
   }