~ubuntu-branches/ubuntu/maverick/brasero/maverick

« back to all changes in this revision

Viewing changes to plugins/transcode/burn-normalize.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2009-11-26 16:20:01 UTC
  • mto: This revision was merged to the branch mainline in revision 58.
  • Revision ID: james.westby@ubuntu.com-20091126162001-5iw2jzxdx8l31okz
Tags: upstream-2.29.2
ImportĀ upstreamĀ versionĀ 2.29.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
636
636
        job_class->stop = brasero_normalize_stop;
637
637
}
638
638
 
639
 
static BraseroBurnResult
640
 
brasero_normalize_export_caps (BraseroPlugin *plugin, gchar **error)
 
639
static void
 
640
brasero_normalize_export_caps (BraseroPlugin *plugin)
641
641
{
642
642
        GSList *input;
643
 
        GstElement *element;
644
643
 
645
644
        brasero_plugin_define (plugin,
646
645
                               N_("Normalize"),
647
 
                               _("Normalize allows you to set consistent sound levels between tracks"),
 
646
                               _("Sets consistent sound levels between tracks"),
648
647
                               "Philippe Rouquier",
649
648
                               0);
650
649
 
651
 
        /* Let's see if we've got the plugins we need */
652
 
        element = gst_element_factory_make ("rgvolume", NULL);
653
 
        if (!element) {
654
 
                *error = g_strdup_printf (_("%s element could not be created"),
655
 
                                          "\"Rgvolume\"");
656
 
                return BRASERO_BURN_ERR;
657
 
        }
658
 
        gst_object_unref (element);
659
 
 
660
 
        element = gst_element_factory_make ("rganalysis", NULL);
661
 
        if (!element) {
662
 
                *error = g_strdup_printf (_("%s element could not be created"),
663
 
                                          "\"Rganalysis\"");
664
 
                return BRASERO_BURN_ERR;
665
 
        }
666
 
        gst_object_unref (element);
667
 
 
668
650
        /* Add dts to make sure that when they are mixed with regular songs
669
651
         * this plugin will be called for the regular tracks */
670
652
        input = brasero_caps_audio_new (BRASERO_PLUGIN_IO_ACCEPT_FILE,
686
668
        brasero_plugin_set_process_flags (plugin, BRASERO_PLUGIN_RUN_PREPROCESSING);
687
669
 
688
670
        brasero_plugin_set_compulsory (plugin, FALSE);
 
671
}
689
672
 
690
 
        return BRASERO_BURN_OK;
 
673
G_MODULE_EXPORT void
 
674
brasero_plugin_check_config (BraseroPlugin *plugin)
 
675
{
 
676
        brasero_plugin_test_gstreamer_plugin (plugin, "rgvolume");
 
677
        brasero_plugin_test_gstreamer_plugin (plugin, "rganalysis");
691
678
}