aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2012-08-20 05:44:37 +0000
committerLRN <lrn1986@gmail.com>2012-08-20 05:44:37 +0000
commit936a85ffbd5a81011f6d7f5d3e4c30e12eac8757 (patch)
tree93865f452e9169a6aa5a5450208d301274537ad7
parent45b0782390fa82407565c83ccb88da6a163abdc3 (diff)
downloadlibextractor-936a85ffbd5a81011f6d7f5d3e4c30e12eac8757.tar.gz
libextractor-936a85ffbd5a81011f6d7f5d3e4c30e12eac8757.zip
Eliminate trailing spaces
-rw-r--r--src/plugins/gstreamer_extractor.c4
-rw-r--r--src/plugins/test_gstreamer.c72
2 files changed, 38 insertions, 38 deletions
diff --git a/src/plugins/gstreamer_extractor.c b/src/plugins/gstreamer_extractor.c
index aae37e7..cb314cf 100644
--- a/src/plugins/gstreamer_extractor.c
+++ b/src/plugins/gstreamer_extractor.c
@@ -863,7 +863,7 @@ send_structure_foreach (GQuark field_id, const GValue *value,
863 case STREAM_TYPE_CONTAINER: 863 case STREAM_TYPE_CONTAINER:
864 break; 864 break;
865 } 865 }
866 866
867 867
868 /* TODO: check a list of known quarks, use specific EXTRACTOR_MetaType */ 868 /* TODO: check a list of known quarks, use specific EXTRACTOR_MetaType */
869 switch (G_VALUE_TYPE (value)) 869 switch (G_VALUE_TYPE (value))
@@ -901,7 +901,7 @@ send_structure_foreach (GQuark field_id, const GValue *value,
901 } 901 }
902 902
903 g_free (str); 903 g_free (str);
904 904
905 return !ps->time_to_leave; 905 return !ps->time_to_leave;
906} 906}
907 907
diff --git a/src/plugins/test_gstreamer.c b/src/plugins/test_gstreamer.c
index 8fa15fb..4f9fdd4 100644
--- a/src/plugins/test_gstreamer.c
+++ b/src/plugins/test_gstreamer.c
@@ -144,153 +144,153 @@ main (int argc, char *argv[])
144 { 144 {
145 struct SolutionData thirty_and_thirtythree_sol[] = 145 struct SolutionData thirty_and_thirtythree_sol[] =
146 { 146 {
147 { 147 {
148 EXTRACTOR_METATYPE_DURATION, 148 EXTRACTOR_METATYPE_DURATION,
149 EXTRACTOR_METAFORMAT_UTF8, 149 EXTRACTOR_METAFORMAT_UTF8,
150 "text/plain", 150 "text/plain",
151 "0:00:05.061000000", 151 "0:00:05.061000000",
152 strlen ("0:00:05.061000000") + 1, 152 strlen ("0:00:05.061000000") + 1,
153 0 153 0
154 }, 154 },
155 { 155 {
156 EXTRACTOR_METATYPE_TRACK_NUMBER, 156 EXTRACTOR_METATYPE_TRACK_NUMBER,
157 EXTRACTOR_METAFORMAT_UTF8, 157 EXTRACTOR_METAFORMAT_UTF8,
158 "text/plain", 158 "text/plain",
159 "21", 159 "21",
160 strlen ("21") + 1, 160 strlen ("21") + 1,
161 0 161 0
162 }, 162 },
163 { 163 {
164 EXTRACTOR_METATYPE_ALBUM, 164 EXTRACTOR_METATYPE_ALBUM,
165 EXTRACTOR_METAFORMAT_UTF8, 165 EXTRACTOR_METAFORMAT_UTF8,
166 "text/plain", 166 "text/plain",
167 "Zee Album", 167 "Zee Album",
168 strlen ("Zee Album") + 1, 168 strlen ("Zee Album") + 1,
169 0 169 0
170 }, 170 },
171 { 171 {
172 EXTRACTOR_METATYPE_CREATION_TIME, 172 EXTRACTOR_METATYPE_CREATION_TIME,
173 EXTRACTOR_METAFORMAT_UTF8, 173 EXTRACTOR_METAFORMAT_UTF8,
174 "text/plain", 174 "text/plain",
175 "9999", 175 "9999",
176 strlen ("9999") + 1, 176 strlen ("9999") + 1,
177 0 177 0
178 }, 178 },
179 /* Suggest a fix to gst devs; "performed by" and "contributors" should 179 /* Suggest a fix to gst devs; "performed by" and "contributors" should
180 * be separate. 180 * be separate.
181 */ 181 */
182 { 182 {
183 EXTRACTOR_METATYPE_ARTIST, 183 EXTRACTOR_METATYPE_ARTIST,
184 EXTRACTOR_METAFORMAT_UTF8, 184 EXTRACTOR_METAFORMAT_UTF8,
185 "text/plain", 185 "text/plain",
186 "All performed by Nobody, This Artist Contributed", 186 "All performed by Nobody, This Artist Contributed",
187 strlen ("All performed by Nobody, This Artist Contributed") + 1, 187 strlen ("All performed by Nobody, This Artist Contributed") + 1,
188 0 188 0
189 }, 189 },
190 { 190 {
191 EXTRACTOR_METATYPE_TITLE, 191 EXTRACTOR_METATYPE_TITLE,
192 EXTRACTOR_METAFORMAT_UTF8, 192 EXTRACTOR_METAFORMAT_UTF8,
193 "text/plain", 193 "text/plain",
194 "Some title", 194 "Some title",
195 strlen ("Some title") + 1, 195 strlen ("Some title") + 1,
196 0 196 0
197 }, 197 },
198 /* Suggest a fix to gst devs; should be a comment, not description */ 198 /* Suggest a fix to gst devs; should be a comment, not description */
199 { 199 {
200 EXTRACTOR_METATYPE_DESCRIPTION, 200 EXTRACTOR_METATYPE_DESCRIPTION,
201 EXTRACTOR_METAFORMAT_UTF8, 201 EXTRACTOR_METAFORMAT_UTF8,
202 "text/plain", 202 "text/plain",
203 "A witty comment", 203 "A witty comment",
204 strlen ("A witty comment") + 1, 204 strlen ("A witty comment") + 1,
205 0 205 0
206 }, 206 },
207 { 207 {
208 EXTRACTOR_METATYPE_CONTAINER_FORMAT, 208 EXTRACTOR_METATYPE_CONTAINER_FORMAT,
209 EXTRACTOR_METAFORMAT_UTF8, 209 EXTRACTOR_METAFORMAT_UTF8,
210 "text/plain", 210 "text/plain",
211 "ASF", 211 "ASF",
212 strlen ("ASF") + 1, 212 strlen ("ASF") + 1,
213 0 213 0
214 }, 214 },
215 { 215 {
216 EXTRACTOR_METATYPE_AUDIO_CODEC, 216 EXTRACTOR_METATYPE_AUDIO_CODEC,
217 EXTRACTOR_METAFORMAT_UTF8, 217 EXTRACTOR_METAFORMAT_UTF8,
218 "text/plain", 218 "text/plain",
219 "WMA Version 8", 219 "WMA Version 8",
220 strlen ("WMA Version 8") + 1, 220 strlen ("WMA Version 8") + 1,
221 0 221 0
222 }, 222 },
223 { 223 {
224 EXTRACTOR_METATYPE_MIMETYPE, 224 EXTRACTOR_METATYPE_MIMETYPE,
225 EXTRACTOR_METAFORMAT_UTF8, 225 EXTRACTOR_METAFORMAT_UTF8,
226 "text/plain", 226 "text/plain",
227 "video/x-ms-asf", 227 "video/x-ms-asf",
228 strlen ("video/x-ms-asf") + 1, 228 strlen ("video/x-ms-asf") + 1,
229 0 229 0
230 }, 230 },
231 { 231 {
232 EXTRACTOR_METATYPE_MIMETYPE, 232 EXTRACTOR_METATYPE_MIMETYPE,
233 EXTRACTOR_METAFORMAT_UTF8, 233 EXTRACTOR_METAFORMAT_UTF8,
234 "text/plain", 234 "text/plain",
235 "audio/x-wma", 235 "audio/x-wma",
236 strlen ("audio/x-wma") + 1, 236 strlen ("audio/x-wma") + 1,
237 0 237 0
238 }, 238 },
239 { 239 {
240 EXTRACTOR_METATYPE_UNKNOWN, 240 EXTRACTOR_METATYPE_UNKNOWN,
241 EXTRACTOR_METAFORMAT_UTF8, 241 EXTRACTOR_METAFORMAT_UTF8,
242 "text/plain", 242 "text/plain",
243 "wmaversion=2", 243 "wmaversion=2",
244 strlen ("wmaversion=2") + 1, 244 strlen ("wmaversion=2") + 1,
245 0 245 0
246 }, 246 },
247 { 247 {
248 EXTRACTOR_METATYPE_UNKNOWN, 248 EXTRACTOR_METATYPE_UNKNOWN,
249 EXTRACTOR_METAFORMAT_UTF8, 249 EXTRACTOR_METAFORMAT_UTF8,
250 "text/plain", 250 "text/plain",
251 "bitrate=96024", 251 "bitrate=96024",
252 strlen ("bitrate=96024") + 1, 252 strlen ("bitrate=96024") + 1,
253 0 253 0
254 }, 254 },
255 { 255 {
256 EXTRACTOR_METATYPE_UNKNOWN, 256 EXTRACTOR_METATYPE_UNKNOWN,
257 EXTRACTOR_METAFORMAT_UTF8, 257 EXTRACTOR_METAFORMAT_UTF8,
258 "text/plain", 258 "text/plain",
259 "block_align=4459", 259 "block_align=4459",
260 strlen ("block_align=4459") + 1, 260 strlen ("block_align=4459") + 1,
261 0 261 0
262 }, 262 },
263 { 263 {
264 EXTRACTOR_METATYPE_AUDIO_LANGUAGE, 264 EXTRACTOR_METATYPE_AUDIO_LANGUAGE,
265 EXTRACTOR_METAFORMAT_UTF8, 265 EXTRACTOR_METAFORMAT_UTF8,
266 "text/plain", 266 "text/plain",
267 "en", 267 "en",
268 strlen ("en") + 1, 268 strlen ("en") + 1,
269 0 269 0
270 }, 270 },
271 { 271 {
272 EXTRACTOR_METATYPE_CHANNELS, 272 EXTRACTOR_METATYPE_CHANNELS,
273 EXTRACTOR_METAFORMAT_UTF8, 273 EXTRACTOR_METAFORMAT_UTF8,
274 "text/plain", 274 "text/plain",
275 "2", 275 "2",
276 strlen ("2") + 1, 276 strlen ("2") + 1,
277 0 277 0
278 }, 278 },
279 { 279 {
280 EXTRACTOR_METATYPE_SAMPLE_RATE, 280 EXTRACTOR_METATYPE_SAMPLE_RATE,
281 EXTRACTOR_METAFORMAT_UTF8, 281 EXTRACTOR_METAFORMAT_UTF8,
282 "text/plain", 282 "text/plain",
283 "44100", 283 "44100",
284 strlen ("44100") + 1, 284 strlen ("44100") + 1,
285 0 285 0
286 }, 286 },
287 { 287 {
288 EXTRACTOR_METATYPE_AUDIO_DEPTH, 288 EXTRACTOR_METATYPE_AUDIO_DEPTH,
289 EXTRACTOR_METAFORMAT_UTF8, 289 EXTRACTOR_METAFORMAT_UTF8,
290 "text/plain", 290 "text/plain",
291 "16", 291 "16",
292 strlen ("16") + 1, 292 strlen ("16") + 1,
293 0 293 0
294 }, 294 },
295 { 0, 0, NULL, NULL, 0, -1 } 295 { 0, 0, NULL, NULL, 0, -1 }
296 }; 296 };