~ubuntu-branches/debian/experimental/brasero/experimental

« back to all changes in this revision

Viewing changes to plugins/dvdauthor/burn-dvdauthor.c

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette
  • Date: 2011-03-29 16:33:51 UTC
  • mfrom: (1.3.18 upstream) (5.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20110329163351-ac3wgbh4mplmhnht
Tags: 2.91.93-1
* Only depend on growisofs instead of dvd+rw-tools.
* New upstream pre-release.
* Update build-dependencies, package names, and paths.
* Require totem-plparser 2.32 since its soname changed.
* Do not include GIR package for now, since the versioning is broken 
  (see Bugzilla #646069).
* 01_pkglibdir.patch: dropped, upstream now has a variable we can use 
  for that effect.
* 11_nautilus_menu_no_display.patch, 31_link_libice.patch, 
  50_checksum.patch: dropped, merged upstream.
* 90_relibtoolize.patch: dropped, unnecessary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
#include "brasero-plugin-registration.h"
50
50
#include "burn-job.h"
51
51
#include "burn-process.h"
52
 
#include "burn-dvdauthor.h"
53
52
#include "brasero-track-data.h"
54
53
#include "brasero-track-stream.h"
55
54
 
 
55
 
 
56
#define BRASERO_TYPE_DVD_AUTHOR             (brasero_dvd_author_get_type ())
 
57
#define BRASERO_DVD_AUTHOR(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), BRASERO_TYPE_DVD_AUTHOR, BraseroDvdAuthor))
 
58
#define BRASERO_DVD_AUTHOR_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), BRASERO_TYPE_DVD_AUTHOR, BraseroDvdAuthorClass))
 
59
#define BRASERO_IS_DVD_AUTHOR(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BRASERO_TYPE_DVD_AUTHOR))
 
60
#define BRASERO_IS_DVD_AUTHOR_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), BRASERO_TYPE_DVD_AUTHOR))
 
61
#define BRASERO_DVD_AUTHOR_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), BRASERO_TYPE_DVD_AUTHOR, BraseroDvdAuthorClass))
 
62
 
56
63
BRASERO_PLUGIN_BOILERPLATE (BraseroDvdAuthor, brasero_dvd_author, BRASERO_TYPE_PROCESS, BraseroProcess);
57
64
 
58
65
typedef struct _BraseroDvdAuthorPrivate BraseroDvdAuthorPrivate;
276
283
                             GPtrArray *argv,
277
284
                             GError **error)
278
285
{
279
 
        BraseroDvdAuthorPrivate *priv;
280
286
        BraseroBurnResult result;
281
287
        BraseroJobAction action;
282
288
        gchar *output;
283
289
 
284
 
        priv = BRASERO_DVD_AUTHOR_PRIVATE (process);
285
 
 
286
290
        brasero_job_get_action (BRASERO_JOB (process), &action);
287
291
        if (action != BRASERO_JOB_ACTION_IMAGE)
288
292
                BRASERO_JOB_NOT_SUPPORTED (process);
354
358
        process_class->post = brasero_dvd_author_post;
355
359
}
356
360
 
357
 
static BraseroBurnResult
358
 
brasero_dvd_author_export_caps (BraseroPlugin *plugin, gchar **error)
 
361
static void
 
362
brasero_dvd_author_export_caps (BraseroPlugin *plugin)
359
363
{
360
 
        BraseroBurnResult result;
361
364
        GSList *output;
362
365
        GSList *input;
363
366
 
364
367
        /* NOTE: it seems that cdrecord can burn cue files on the fly */
365
368
        brasero_plugin_define (plugin,
366
369
                               "dvdauthor",
367
 
                               _("Use dvdauthor to create Video DVDs"),
 
370
                               NULL,
 
371
                               _("Creates disc images suitable for video DVDs"),
368
372
                               "Philippe Rouquier",
369
373
                               1);
370
374
 
371
 
        /* First see if this plugin can be used */
372
 
        result = brasero_process_check_path ("dvdauthor", error);
373
 
        if (result != BRASERO_BURN_OK)
374
 
                return result;
375
 
 
376
375
        input = brasero_caps_audio_new (BRASERO_PLUGIN_IO_ACCEPT_FILE,
377
376
                                        BRASERO_AUDIO_FORMAT_AC3|
378
377
                                        BRASERO_AUDIO_FORMAT_MP2|
379
378
                                        BRASERO_AUDIO_FORMAT_RAW|
380
 
                                        BRASERO_AUDIO_FORMAT_44100|
381
 
                                        BRASERO_AUDIO_FORMAT_48000|
382
379
                                        BRASERO_METADATA_INFO|
383
380
                                        BRASERO_VIDEO_FORMAT_VIDEO_DVD);
384
381
 
393
390
                                        BRASERO_AUDIO_FORMAT_AC3|
394
391
                                        BRASERO_AUDIO_FORMAT_MP2|
395
392
                                        BRASERO_AUDIO_FORMAT_RAW|
396
 
                                        BRASERO_AUDIO_FORMAT_44100|
397
 
                                        BRASERO_AUDIO_FORMAT_48000|
398
393
                                        BRASERO_VIDEO_FORMAT_VIDEO_DVD);
399
394
 
400
395
        brasero_plugin_link_caps (plugin, output, input);
424
419
                                  BRASERO_MEDIUM_HAS_DATA,
425
420
                                  BRASERO_BURN_FLAG_NONE,
426
421
                                  BRASERO_BURN_FLAG_NONE);
 
422
}
427
423
 
428
 
        return BRASERO_BURN_OK;
 
424
G_MODULE_EXPORT void
 
425
brasero_plugin_check_config (BraseroPlugin *plugin)
 
426
{
 
427
        gint version [3] = { 0, 6, 0};
 
428
        brasero_plugin_test_app (plugin,
 
429
                                 "dvdauthor",
 
430
                                 "-h",
 
431
                                 "DVDAuthor::dvdauthor, version %d.%d.%d.",
 
432
                                 version);
429
433
}