aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/gstreamer_extractor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/gstreamer_extractor.c')
-rw-r--r--src/plugins/gstreamer_extractor.c84
1 files changed, 42 insertions, 42 deletions
diff --git a/src/plugins/gstreamer_extractor.c b/src/plugins/gstreamer_extractor.c
index 162ae09..dd61900 100644
--- a/src/plugins/gstreamer_extractor.c
+++ b/src/plugins/gstreamer_extractor.c
@@ -170,7 +170,7 @@ struct KnownTag __known_tags[] =
170 * 170 *
171 * count of discs inside collection this disc belongs to (unsigned integer) 171 * count of discs inside collection this disc belongs to (unsigned integer)
172 */ 172 */
173 {GST_TAG_ALBUM_VOLUME_NUMBER, EXTRACTOR_METATYPE_DISC_COUNT}, /* New! */ 173 {GST_TAG_ALBUM_VOLUME_NUMBER, EXTRACTOR_METATYPE_DISC_COUNT},
174/** 174/**
175 * GST_TAG_LOCATION: 175 * GST_TAG_LOCATION:
176 * 176 *
@@ -266,62 +266,62 @@ struct KnownTag __known_tags[] =
266 * 266 *
267 * codec the data is stored in (string) 267 * codec the data is stored in (string)
268 */ 268 */
269 {GST_TAG_CODEC, EXTRACTOR_METATYPE_CODEC}, /* New! */ 269 {GST_TAG_CODEC, EXTRACTOR_METATYPE_CODEC},
270/** 270/**
271 * GST_TAG_VIDEO_CODEC: 271 * GST_TAG_VIDEO_CODEC:
272 * 272 *
273 * codec the video data is stored in (string) 273 * codec the video data is stored in (string)
274 */ 274 */
275 {GST_TAG_VIDEO_CODEC, EXTRACTOR_METATYPE_VIDEO_CODEC}, /* New! */ 275 {GST_TAG_VIDEO_CODEC, EXTRACTOR_METATYPE_VIDEO_CODEC},
276/** 276/**
277 * GST_TAG_AUDIO_CODEC: 277 * GST_TAG_AUDIO_CODEC:
278 * 278 *
279 * codec the audio data is stored in (string) 279 * codec the audio data is stored in (string)
280 */ 280 */
281 {GST_TAG_AUDIO_CODEC, EXTRACTOR_METATYPE_AUDIO_CODEC}, /* New! */ 281 {GST_TAG_AUDIO_CODEC, EXTRACTOR_METATYPE_AUDIO_CODEC},
282/** 282/**
283 * GST_TAG_SUBTITLE_CODEC: 283 * GST_TAG_SUBTITLE_CODEC:
284 * 284 *
285 * codec/format the subtitle data is stored in (string) 285 * codec/format the subtitle data is stored in (string)
286 */ 286 */
287 {GST_TAG_SUBTITLE_CODEC, EXTRACTOR_METATYPE_SUBTITLE_CODEC}, /* New! */ 287 {GST_TAG_SUBTITLE_CODEC, EXTRACTOR_METATYPE_SUBTITLE_CODEC},
288/** 288/**
289 * GST_TAG_CONTAINER_FORMAT: 289 * GST_TAG_CONTAINER_FORMAT:
290 * 290 *
291 * container format the data is stored in (string) 291 * container format the data is stored in (string)
292 */ 292 */
293 {GST_TAG_CONTAINER_FORMAT, EXTRACTOR_METATYPE_CONTAINER_FORMAT}, /* New! */ 293 {GST_TAG_CONTAINER_FORMAT, EXTRACTOR_METATYPE_CONTAINER_FORMAT},
294/** 294/**
295 * GST_TAG_BITRATE: 295 * GST_TAG_BITRATE:
296 * 296 *
297 * exact or average bitrate in bits/s (unsigned integer) 297 * exact or average bitrate in bits/s (unsigned integer)
298 */ 298 */
299 {GST_TAG_BITRATE, EXTRACTOR_METATYPE_BITRATE}, /* New! */ 299 {GST_TAG_BITRATE, EXTRACTOR_METATYPE_BITRATE},
300/** 300/**
301 * GST_TAG_NOMINAL_BITRATE: 301 * GST_TAG_NOMINAL_BITRATE:
302 * 302 *
303 * nominal bitrate in bits/s (unsigned integer). The actual bitrate might be 303 * nominal bitrate in bits/s (unsigned integer). The actual bitrate might be
304 * different from this target bitrate. 304 * different from this target bitrate.
305 */ 305 */
306 {GST_TAG_NOMINAL_BITRATE, EXTRACTOR_METATYPE_NOMINAL_BITRATE}, /* New! */ 306 {GST_TAG_NOMINAL_BITRATE, EXTRACTOR_METATYPE_NOMINAL_BITRATE},
307/** 307/**
308 * GST_TAG_MINIMUM_BITRATE: 308 * GST_TAG_MINIMUM_BITRATE:
309 * 309 *
310 * minimum bitrate in bits/s (unsigned integer) 310 * minimum bitrate in bits/s (unsigned integer)
311 */ 311 */
312 {GST_TAG_MINIMUM_BITRATE, EXTRACTOR_METATYPE_MINIMUM_BITRATE}, /* New! */ 312 {GST_TAG_MINIMUM_BITRATE, EXTRACTOR_METATYPE_MINIMUM_BITRATE},
313/** 313/**
314 * GST_TAG_MAXIMUM_BITRATE: 314 * GST_TAG_MAXIMUM_BITRATE:
315 * 315 *
316 * maximum bitrate in bits/s (unsigned integer) 316 * maximum bitrate in bits/s (unsigned integer)
317 */ 317 */
318 {GST_TAG_MAXIMUM_BITRATE, EXTRACTOR_METATYPE_MAXIMUM_BITRATE}, /* New! */ 318 {GST_TAG_MAXIMUM_BITRATE, EXTRACTOR_METATYPE_MAXIMUM_BITRATE},
319/** 319/**
320 * GST_TAG_SERIAL: 320 * GST_TAG_SERIAL:
321 * 321 *
322 * serial number of track (unsigned integer) 322 * serial number of track (unsigned integer)
323 */ 323 */
324 {GST_TAG_SERIAL, EXTRACTOR_METATYPE_SERIAL}, /* New! */ 324 {GST_TAG_SERIAL, EXTRACTOR_METATYPE_SERIAL},
325/** 325/**
326 * GST_TAG_ENCODER: 326 * GST_TAG_ENCODER:
327 * 327 *
@@ -333,37 +333,37 @@ struct KnownTag __known_tags[] =
333 * 333 *
334 * version of the encoder used to encode this stream (unsigned integer) 334 * version of the encoder used to encode this stream (unsigned integer)
335 */ 335 */
336 {GST_TAG_ENCODER_VERSION, EXTRACTOR_METATYPE_ENCODER_VERSION}, /* New! */ 336 {GST_TAG_ENCODER_VERSION, EXTRACTOR_METATYPE_ENCODER_VERSION},
337/** 337/**
338 * GST_TAG_TRACK_GAIN: 338 * GST_TAG_TRACK_GAIN:
339 * 339 *
340 * track gain in db (double) 340 * track gain in db (double)
341 */ 341 */
342 {GST_TAG_TRACK_GAIN, EXTRACTOR_METATYPE_TRACK_GAIN}, /* New! */ 342 {GST_TAG_TRACK_GAIN, EXTRACTOR_METATYPE_TRACK_GAIN},
343/** 343/**
344 * GST_TAG_TRACK_PEAK: 344 * GST_TAG_TRACK_PEAK:
345 * 345 *
346 * peak of the track (double) 346 * peak of the track (double)
347 */ 347 */
348 {GST_TAG_TRACK_PEAK, EXTRACTOR_METATYPE_TRACK_PEAK}, /* New! */ 348 {GST_TAG_TRACK_PEAK, EXTRACTOR_METATYPE_TRACK_PEAK},
349/** 349/**
350 * GST_TAG_ALBUM_GAIN: 350 * GST_TAG_ALBUM_GAIN:
351 * 351 *
352 * album gain in db (double) 352 * album gain in db (double)
353 */ 353 */
354 {GST_TAG_ALBUM_GAIN, EXTRACTOR_METATYPE_ALBUM_GAIN}, /* New! */ 354 {GST_TAG_ALBUM_GAIN, EXTRACTOR_METATYPE_ALBUM_GAIN},
355/** 355/**
356 * GST_TAG_ALBUM_PEAK: 356 * GST_TAG_ALBUM_PEAK:
357 * 357 *
358 * peak of the album (double) 358 * peak of the album (double)
359 */ 359 */
360 {GST_TAG_ALBUM_PEAK, EXTRACTOR_METATYPE_ALBUM_PEAK}, /* New! */ 360 {GST_TAG_ALBUM_PEAK, EXTRACTOR_METATYPE_ALBUM_PEAK},
361/** 361/**
362 * GST_TAG_REFERENCE_LEVEL: 362 * GST_TAG_REFERENCE_LEVEL:
363 * 363 *
364 * reference level of track and album gain values (double) 364 * reference level of track and album gain values (double)
365 */ 365 */
366 {GST_TAG_REFERENCE_LEVEL, EXTRACTOR_METATYPE_REFERENCE_LEVEL}, /* New! */ 366 {GST_TAG_REFERENCE_LEVEL, EXTRACTOR_METATYPE_REFERENCE_LEVEL},
367/** 367/**
368 * GST_TAG_LANGUAGE_CODE: 368 * GST_TAG_LANGUAGE_CODE:
369 * 369 *
@@ -423,7 +423,7 @@ struct KnownTag __known_tags[] =
423 * human readable descriptive location of where the media has been recorded or 423 * human readable descriptive location of where the media has been recorded or
424 * produced. (string). 424 * produced. (string).
425 */ 425 */
426 {GST_TAG_GEO_LOCATION_NAME, EXTRACTOR_METATYPE_LOCATION_NAME}, /* New! */ 426 {GST_TAG_GEO_LOCATION_NAME, EXTRACTOR_METATYPE_LOCATION_NAME},
427/** 427/**
428 * GST_TAG_GEO_LOCATION_LATITUDE: 428 * GST_TAG_GEO_LOCATION_LATITUDE:
429 * 429 *
@@ -446,7 +446,7 @@ struct KnownTag __known_tags[] =
446 * geo elevation of where the media has been recorded or produced in meters 446 * geo elevation of where the media has been recorded or produced in meters
447 * according to WGS84 (zero is average sea level) (double). 447 * according to WGS84 (zero is average sea level) (double).
448 */ 448 */
449 {GST_TAG_GEO_LOCATION_ELEVATION, EXTRACTOR_METATYPE_LOCATION_ELEVATION}, /* New! */ 449 {GST_TAG_GEO_LOCATION_ELEVATION, EXTRACTOR_METATYPE_LOCATION_ELEVATION},
450/** 450/**
451 * GST_TAG_GEO_LOCATION_COUNTRY: 451 * GST_TAG_GEO_LOCATION_COUNTRY:
452 * 452 *
@@ -475,7 +475,7 @@ struct KnownTag __known_tags[] =
475 * Represents the expected error on the horizontal positioning in 475 * Represents the expected error on the horizontal positioning in
476 * meters (double). 476 * meters (double).
477 */ 477 */
478 {GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR, EXTRACTOR_METATYPE_LOCATION_HORIZONTAL_ERROR}, /* New! */ 478 {GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR, EXTRACTOR_METATYPE_LOCATION_HORIZONTAL_ERROR},
479/** 479/**
480 * GST_TAG_GEO_LOCATION_MOVEMENT_SPEED: 480 * GST_TAG_GEO_LOCATION_MOVEMENT_SPEED:
481 * 481 *
@@ -484,7 +484,7 @@ struct KnownTag __known_tags[] =
484 * 484 *
485 * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION 485 * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
486 */ 486 */
487 {GST_TAG_GEO_LOCATION_MOVEMENT_SPEED, EXTRACTOR_METATYPE_LOCATION_MOVEMENT_SPEED}, /* New! */ 487 {GST_TAG_GEO_LOCATION_MOVEMENT_SPEED, EXTRACTOR_METATYPE_LOCATION_MOVEMENT_SPEED},
488/** 488/**
489 * GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION: 489 * GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION:
490 * 490 *
@@ -494,7 +494,7 @@ struct KnownTag __known_tags[] =
494 * 494 *
495 * See also #GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION 495 * See also #GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION
496 */ 496 */
497 {GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION, EXTRACTOR_METATYPE_LOCATION_MOVEMENT_DIRECTION}, /* New! */ 497 {GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION, EXTRACTOR_METATYPE_LOCATION_MOVEMENT_DIRECTION},
498/** 498/**
499 * GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION: 499 * GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION:
500 * 500 *
@@ -504,7 +504,7 @@ struct KnownTag __known_tags[] =
504 * 504 *
505 * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION 505 * See also #GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
506 */ 506 */
507 {GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION, EXTRACTOR_METATYPE_LOCATION_CAPTURE_DIRECTION}, /* New! */ 507 {GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION, EXTRACTOR_METATYPE_LOCATION_CAPTURE_DIRECTION},
508/** 508/**
509 * GST_TAG_SHOW_NAME: 509 * GST_TAG_SHOW_NAME:
510 * 510 *
@@ -522,13 +522,13 @@ struct KnownTag __known_tags[] =
522 * 522 *
523 * Number of the episode within a season/show (unsigned integer) 523 * Number of the episode within a season/show (unsigned integer)
524 */ 524 */
525 {GST_TAG_SHOW_EPISODE_NUMBER, EXTRACTOR_METATYPE_SHOW_EPISODE_NUMBER}, /* New! */ 525 {GST_TAG_SHOW_EPISODE_NUMBER, EXTRACTOR_METATYPE_SHOW_EPISODE_NUMBER},
526/** 526/**
527 * GST_TAG_SHOW_SEASON_NUMBER: 527 * GST_TAG_SHOW_SEASON_NUMBER:
528 * 528 *
529 * Number of the season of a show/series (unsigned integer) 529 * Number of the season of a show/series (unsigned integer)
530 */ 530 */
531 {GST_TAG_SHOW_SEASON_NUMBER, EXTRACTOR_METATYPE_SHOW_SEASON_NUMBER}, /* New! */ 531 {GST_TAG_SHOW_SEASON_NUMBER, EXTRACTOR_METATYPE_SHOW_SEASON_NUMBER},
532/** 532/**
533 * GST_TAG_LYRICS: 533 * GST_TAG_LYRICS:
534 * 534 *
@@ -547,7 +547,7 @@ struct KnownTag __known_tags[] =
547 * Groups together media that are related and spans multiple tracks. An 547 * Groups together media that are related and spans multiple tracks. An
548 * example are multiple pieces of a concerto. (string) 548 * example are multiple pieces of a concerto. (string)
549 */ 549 */
550 {GST_TAG_GROUPING, EXTRACTOR_METATYPE_GROUPING}, /* New! */ 550 {GST_TAG_GROUPING, EXTRACTOR_METATYPE_GROUPING},
551/** 551/**
552 * GST_TAG_USER_RATING: 552 * GST_TAG_USER_RATING:
553 * 553 *
@@ -561,13 +561,13 @@ struct KnownTag __known_tags[] =
561 * 561 *
562 * Manufacturer of the device used to create the media (string) 562 * Manufacturer of the device used to create the media (string)
563 */ 563 */
564 {GST_TAG_DEVICE_MANUFACTURER, EXTRACTOR_METATYPE_DEVICE_MANUFACTURER}, /* New! */ 564 {GST_TAG_DEVICE_MANUFACTURER, EXTRACTOR_METATYPE_DEVICE_MANUFACTURER},
565/** 565/**
566 * GST_TAG_DEVICE_MODEL: 566 * GST_TAG_DEVICE_MODEL:
567 * 567 *
568 * Model of the device used to create the media (string) 568 * Model of the device used to create the media (string)
569 */ 569 */
570 {GST_TAG_DEVICE_MODEL, EXTRACTOR_METATYPE_DEVICE_MODEL}, /* New! */ 570 {GST_TAG_DEVICE_MODEL, EXTRACTOR_METATYPE_DEVICE_MODEL},
571/** 571/**
572 * GST_TAG_APPLICATION_NAME: 572 * GST_TAG_APPLICATION_NAME:
573 * 573 *
@@ -918,7 +918,7 @@ send_audio_info (GstDiscovererAudioInfo *info, struct PrivStruct *ps)
918 ctmp = gst_discoverer_audio_info_get_language (info); 918 ctmp = gst_discoverer_audio_info_get_language (info);
919 if (ctmp) 919 if (ctmp)
920 if (ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer", 920 if (ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer",
921 EXTRACTOR_METATYPE_AUDIO_LANGUAGE, EXTRACTOR_METAFORMAT_UTF8, "text/plain", /* New! */ 921 EXTRACTOR_METATYPE_AUDIO_LANGUAGE, EXTRACTOR_METAFORMAT_UTF8, "text/plain",
922 (const char *) ctmp, strlen (ctmp) + 1)) 922 (const char *) ctmp, strlen (ctmp) + 1))
923 return TRUE; 923 return TRUE;
924 924
@@ -927,7 +927,7 @@ send_audio_info (GstDiscovererAudioInfo *info, struct PrivStruct *ps)
927 { 927 {
928 tmp = g_strdup_printf ("%u", u); 928 tmp = g_strdup_printf ("%u", u);
929 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer", 929 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer",
930 EXTRACTOR_METATYPE_CHANNELS, EXTRACTOR_METAFORMAT_UTF8, "text/plain", /* New! */ 930 EXTRACTOR_METATYPE_CHANNELS, EXTRACTOR_METAFORMAT_UTF8, "text/plain",
931 (const char *) tmp, strlen (tmp) + 1); 931 (const char *) tmp, strlen (tmp) + 1);
932 g_free (tmp); 932 g_free (tmp);
933 if (ps->time_to_leave) 933 if (ps->time_to_leave)
@@ -939,7 +939,7 @@ send_audio_info (GstDiscovererAudioInfo *info, struct PrivStruct *ps)
939 { 939 {
940 tmp = g_strdup_printf ("%u", u); 940 tmp = g_strdup_printf ("%u", u);
941 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer", 941 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer",
942 EXTRACTOR_METATYPE_SAMPLE_RATE, EXTRACTOR_METAFORMAT_UTF8, "text/plain", /* New! */ 942 EXTRACTOR_METATYPE_SAMPLE_RATE, EXTRACTOR_METAFORMAT_UTF8, "text/plain",
943 (const char *) tmp, strlen (tmp) + 1); 943 (const char *) tmp, strlen (tmp) + 1);
944 g_free (tmp); 944 g_free (tmp);
945 if (ps->time_to_leave) 945 if (ps->time_to_leave)
@@ -951,7 +951,7 @@ send_audio_info (GstDiscovererAudioInfo *info, struct PrivStruct *ps)
951 { 951 {
952 tmp = g_strdup_printf ("%u", u); 952 tmp = g_strdup_printf ("%u", u);
953 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer", 953 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer",
954 EXTRACTOR_METATYPE_AUDIO_DEPTH, EXTRACTOR_METAFORMAT_UTF8, "text/plain", /* New! */ 954 EXTRACTOR_METATYPE_AUDIO_DEPTH, EXTRACTOR_METAFORMAT_UTF8, "text/plain",
955 (const char *) tmp, strlen (tmp) + 1); 955 (const char *) tmp, strlen (tmp) + 1);
956 g_free (tmp); 956 g_free (tmp);
957 if (ps->time_to_leave) 957 if (ps->time_to_leave)
@@ -963,7 +963,7 @@ send_audio_info (GstDiscovererAudioInfo *info, struct PrivStruct *ps)
963 { 963 {
964 tmp = g_strdup_printf ("%u", u); 964 tmp = g_strdup_printf ("%u", u);
965 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer", 965 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer",
966 EXTRACTOR_METATYPE_AUDIO_BITRATE, EXTRACTOR_METAFORMAT_UTF8, "text/plain", /* New! */ 966 EXTRACTOR_METATYPE_AUDIO_BITRATE, EXTRACTOR_METAFORMAT_UTF8, "text/plain",
967 (const char *) tmp, strlen (tmp) + 1); 967 (const char *) tmp, strlen (tmp) + 1);
968 g_free (tmp); 968 g_free (tmp);
969 if (ps->time_to_leave) 969 if (ps->time_to_leave)
@@ -975,7 +975,7 @@ send_audio_info (GstDiscovererAudioInfo *info, struct PrivStruct *ps)
975 { 975 {
976 tmp = g_strdup_printf ("%u", u); 976 tmp = g_strdup_printf ("%u", u);
977 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer", 977 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer",
978 EXTRACTOR_METATYPE_MAXIMUM_AUDIO_BITRATE, EXTRACTOR_METAFORMAT_UTF8, "text/plain", /* New! */ 978 EXTRACTOR_METATYPE_MAXIMUM_AUDIO_BITRATE, EXTRACTOR_METAFORMAT_UTF8, "text/plain",
979 (const char *) tmp, strlen (tmp) + 1); 979 (const char *) tmp, strlen (tmp) + 1);
980 g_free (tmp); 980 g_free (tmp);
981 if (ps->time_to_leave) 981 if (ps->time_to_leave)
@@ -997,7 +997,7 @@ send_video_info (GstDiscovererVideoInfo *info, struct PrivStruct *ps)
997 { 997 {
998 tmp = g_strdup_printf ("%ux%u", u, u2); 998 tmp = g_strdup_printf ("%ux%u", u, u2);
999 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer", 999 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer",
1000 EXTRACTOR_METATYPE_VIDEO_DIMENSIONS, EXTRACTOR_METAFORMAT_UTF8, "text/plain", /* New! */ 1000 EXTRACTOR_METATYPE_VIDEO_DIMENSIONS, EXTRACTOR_METAFORMAT_UTF8, "text/plain",
1001 (const char *) tmp, strlen (tmp) + 1); 1001 (const char *) tmp, strlen (tmp) + 1);
1002 g_free (tmp); 1002 g_free (tmp);
1003 if (ps->time_to_leave) 1003 if (ps->time_to_leave)
@@ -1009,7 +1009,7 @@ send_video_info (GstDiscovererVideoInfo *info, struct PrivStruct *ps)
1009 { 1009 {
1010 tmp = g_strdup_printf ("%u", u); 1010 tmp = g_strdup_printf ("%u", u);
1011 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer", 1011 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer",
1012 EXTRACTOR_METATYPE_VIDEO_DEPTH, EXTRACTOR_METAFORMAT_UTF8, "text/plain", /* New! */ 1012 EXTRACTOR_METATYPE_VIDEO_DEPTH, EXTRACTOR_METAFORMAT_UTF8, "text/plain",
1013 (const char *) tmp, strlen (tmp) + 1); 1013 (const char *) tmp, strlen (tmp) + 1);
1014 g_free (tmp); 1014 g_free (tmp);
1015 if (ps->time_to_leave) 1015 if (ps->time_to_leave)
@@ -1022,7 +1022,7 @@ send_video_info (GstDiscovererVideoInfo *info, struct PrivStruct *ps)
1022 { 1022 {
1023 tmp = g_strdup_printf ("%u/%u", u, u2); 1023 tmp = g_strdup_printf ("%u/%u", u, u2);
1024 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer", 1024 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer",
1025 EXTRACTOR_METATYPE_FRAME_RATE, EXTRACTOR_METAFORMAT_UTF8, "text/plain", /* New! */ 1025 EXTRACTOR_METATYPE_FRAME_RATE, EXTRACTOR_METAFORMAT_UTF8, "text/plain",
1026 (const char *) tmp, strlen (tmp) + 1); 1026 (const char *) tmp, strlen (tmp) + 1);
1027 g_free (tmp); 1027 g_free (tmp);
1028 if (ps->time_to_leave) 1028 if (ps->time_to_leave)
@@ -1035,7 +1035,7 @@ send_video_info (GstDiscovererVideoInfo *info, struct PrivStruct *ps)
1035 { 1035 {
1036 tmp = g_strdup_printf ("%u/%u", u, u2); 1036 tmp = g_strdup_printf ("%u/%u", u, u2);
1037 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer", 1037 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer",
1038 EXTRACTOR_METATYPE_PIXEL_ASPECT_RATIO, EXTRACTOR_METAFORMAT_UTF8, "text/plain", /* New! */ 1038 EXTRACTOR_METATYPE_PIXEL_ASPECT_RATIO, EXTRACTOR_METAFORMAT_UTF8, "text/plain",
1039 (const char *) tmp, strlen (tmp) + 1); 1039 (const char *) tmp, strlen (tmp) + 1);
1040 g_free (tmp); 1040 g_free (tmp);
1041 if (ps->time_to_leave) 1041 if (ps->time_to_leave)
@@ -1049,7 +1049,7 @@ send_video_info (GstDiscovererVideoInfo *info, struct PrivStruct *ps)
1049 { 1049 {
1050 tmp = g_strdup_printf ("%u", u); 1050 tmp = g_strdup_printf ("%u", u);
1051 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer", 1051 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer",
1052 EXTRACTOR_METATYPE_VIDEO_BITRATE, EXTRACTOR_METAFORMAT_UTF8, "text/plain", /* New! */ 1052 EXTRACTOR_METATYPE_VIDEO_BITRATE, EXTRACTOR_METAFORMAT_UTF8, "text/plain",
1053 (const char *) tmp, strlen (tmp) + 1); 1053 (const char *) tmp, strlen (tmp) + 1);
1054 g_free (tmp); 1054 g_free (tmp);
1055 if (ps->time_to_leave) 1055 if (ps->time_to_leave)
@@ -1061,7 +1061,7 @@ send_video_info (GstDiscovererVideoInfo *info, struct PrivStruct *ps)
1061 { 1061 {
1062 tmp = g_strdup_printf ("%u", u); 1062 tmp = g_strdup_printf ("%u", u);
1063 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer", 1063 ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer",
1064 EXTRACTOR_METATYPE_MAXIMUM_VIDEO_BITRATE, EXTRACTOR_METAFORMAT_UTF8, "text/plain", /* New! */ 1064 EXTRACTOR_METATYPE_MAXIMUM_VIDEO_BITRATE, EXTRACTOR_METAFORMAT_UTF8, "text/plain",
1065 (const char *) tmp, strlen (tmp) + 1); 1065 (const char *) tmp, strlen (tmp) + 1);
1066 g_free (tmp); 1066 g_free (tmp);
1067 if (ps->time_to_leave) 1067 if (ps->time_to_leave)
@@ -1080,7 +1080,7 @@ send_subtitle_info (GstDiscovererSubtitleInfo *info, struct PrivStruct *ps)
1080 ctmp = gst_discoverer_subtitle_info_get_language (info); 1080 ctmp = gst_discoverer_subtitle_info_get_language (info);
1081 if (ctmp) 1081 if (ctmp)
1082 if (ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer", 1082 if (ps->time_to_leave = ps->ec->proc (ps->ec->cls, "gstreamer",
1083 EXTRACTOR_METATYPE_SUBTITLE_LANGUAGE, EXTRACTOR_METAFORMAT_UTF8, "text/plain", /* New! */ 1083 EXTRACTOR_METATYPE_SUBTITLE_LANGUAGE, EXTRACTOR_METAFORMAT_UTF8, "text/plain",
1084 (const char *) ctmp, strlen (ctmp) + 1)) 1084 (const char *) ctmp, strlen (ctmp) + 1))
1085 return TRUE; 1085 return TRUE;
1086 1086
@@ -1324,7 +1324,7 @@ send_tag_foreach (const GstTagList * tags, const gchar * tag,
1324 skip = TRUE; 1324 skip = TRUE;
1325 break; 1325 break;
1326 case STREAM_TYPE_VIDEO: 1326 case STREAM_TYPE_VIDEO:
1327 le_type = EXTRACTOR_METATYPE_VIDEO_LANGUAGE; /* New! */ 1327 le_type = EXTRACTOR_METATYPE_VIDEO_LANGUAGE;
1328 break; 1328 break;
1329 default: 1329 default:
1330 break; 1330 break;