~ubuntu-branches/ubuntu/hardy/gxine/hardy

« back to all changes in this revision

Viewing changes to src/play_item.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-03-21 11:24:59 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20080321112459-igb0jy01nytpdrzt
Tags: 0.5.901-1ubuntu1
* merge debian changes for hardy PPA. Remaining changes:
  - debian/control: added Xb-Npp-xxx tags accordingly to "firefox distro
    add-on suport" spec,
    (https://blueprints.launchpad.net/ubuntu/+spec/firefox-distro-addon-support)
* Feature Freeze exception granted in LP: #204563
* New upstream release fixes playing DVDs. LP: #128864
* mime.default: add "x-content/video-dvd;x-content/video-vcd;x-content/video-svcd;"
  to get it listed as a player for dvd and video cds in nautilus. Thanks to
  Sebastien Bacher for the hint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2003-2004 the xine project
 
2
 * Copyright (C) 2003-2006 the xine project
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU General Public License as published by
15
15
 * along with this program; if not, write to the Free Software
16
16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
17
17
 *
18
 
 * $Id: play_item.h,v 1.15 2006-03-05 23:57:01 dsalt Exp $
19
 
 *
20
18
 * playlist item / media mark:
21
19
 * an mrl + options (e.g. volume, start time, brightness/contrast ...)
22
20
 */
23
21
 
24
 
#ifndef HAVE_PLAY_ITEM_H
25
 
#define HAVE_PLAY_ITEM_H
 
22
#ifndef GXINE_PLAY_ITEM_H
 
23
#define GXINE_PLAY_ITEM_H
26
24
 
27
25
#include <glib.h>
28
26
#include <stdio.h>
42
40
  char   *title;
43
41
  char   *mrl;
44
42
 
45
 
  int     start_time;
 
43
  int     start_time, duration;
 
44
  struct {
 
45
    int offset;
 
46
    gboolean set;
 
47
  } av, spu;
46
48
 
47
49
  GList  *options; /* options are simply script engine command strings */
48
50
  play_item_type type;
51
53
  gboolean played; /* this has been played in playlist */
52
54
};
53
55
 
54
 
play_item_t *play_item_new (const char *title, const char *mrl, int start_time);
 
56
play_item_t *play_item_new (const char *title, const char *mrl,
 
57
                            int start_time, int duration);
55
58
void play_item_dispose (play_item_t *play_item);
56
59
 
57
60
void play_item_add_option (play_item_t *item, const char *option);
61
64
 
62
65
play_item_t *play_item_copy (play_item_t *item);
63
66
 
64
 
void play_item_play (play_item_t *play_item, int pos, int pos_time);
 
67
void play_item_play (play_item_t *play_item,
 
68
                     int pos, int pos_time, int duration);
65
69
 
66
70
/* gui part */
67
71