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

« back to all changes in this revision

Viewing changes to libbrasero-burn/brasero-track-stream.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:
69
69
                g_free (priv->uri);
70
70
 
71
71
        priv->uri = g_strdup (uri);
 
72
 
 
73
        /* Since that's a new URI chances are, the end point is different */
 
74
        priv->end = 0;
 
75
 
72
76
        return BRASERO_BURN_OK;
73
77
}
74
78
 
77
81
 * @track: a #BraseroTrackStream
78
82
 * @uri: a #gchar
79
83
 *
80
 
 * Sets the stream (song or video) uri. 
 
84
 * Sets the stream (song or video) uri.
 
85
 *
 
86
 * Note: it resets the end point of the track to 0 but keeps start point and gap
 
87
 * unchanged.
81
88
 *
82
89
 * Return value: a #BraseroBurnResult. BRASERO_BURN_OK if it is successful.
83
90
 **/
236
243
 * This function returns the path or the URI (if @uri is TRUE)
237
244
 * of the stream (song or video file).
238
245
 *
 
246
 * Note: this function resets any length previously set to 0.
239
247
 * Return value: a #gchar.
240
248
 **/
241
249
 
340
348
                return BRASERO_BURN_ERR;
341
349
 
342
350
        *length = BRASERO_STREAM_LENGTH (priv->start, priv->end + priv->gap);
343
 
 
344
351
        return BRASERO_BURN_OK;
345
352
}
346
353
 
349
356
                               goffset *blocks,
350
357
                               goffset *block_size)
351
358
{
352
 
        BraseroTrackStreamPrivate *priv;
353
359
        BraseroStreamFormat format;
354
360
 
355
 
        priv = BRASERO_TRACK_STREAM_PRIVATE (track);
356
 
 
357
361
        format = brasero_track_stream_get_format (BRASERO_TRACK_STREAM (track));
358
362
        if (!BRASERO_STREAM_FORMAT_HAS_VIDEO (format)) {
359
363
                if (blocks) {
403
407
        return BRASERO_BURN_OK;
404
408
}
405
409
 
406
 
static BraseroTrackDataType
 
410
static BraseroBurnResult
407
411
brasero_track_stream_get_track_type (BraseroTrack *track,
408
412
                                     BraseroTrackType *type)
409
413
{
411
415
 
412
416
        priv = BRASERO_TRACK_STREAM_PRIVATE (track);
413
417
 
414
 
        if (!type)
415
 
                return BRASERO_TRACK_TYPE_STREAM;
416
 
 
417
418
        brasero_track_type_set_has_stream (type);
418
419
        brasero_track_type_set_stream_format (type, priv->format);
419
420
 
420
 
        return BRASERO_TRACK_TYPE_STREAM;
 
421
        return BRASERO_BURN_OK;
421
422
}
422
423
 
423
424
static void