Mercurial > mplayer.hg
annotate loader/dshow/cmediasample.h @ 35168:627bdd8915ca
Fix building GUI without DVD support.
The (global) configuration variables dvd_chapter and dvd_angle
must be set prior to opening the stream and as there isn't yet
a stream available, no stream control command can be used.
After the stream has been opened, the angle can be retrieved by
a stream control command and variable access can be avoided.
Additionally, don't set guiInfo.Chapter - and wrongly by one -,
because this will be done in mplayer.c, after the chapter has been
seeked (later).
Reported by Valentine Barshak, gvaxon gmail com.
author | ib |
---|---|
date | Sun, 21 Oct 2012 14:40:49 +0000 |
parents | a8ea87c71d18 |
children |
rev | line source |
---|---|
26045 | 1 #ifndef MPLAYER_CMEDIASAMPLE_H |
2 #define MPLAYER_CMEDIASAMPLE_H | |
168 | 3 |
4 #include "interfaces.h" | |
5 #include "guids.h" | |
1545 | 6 |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
3467
diff
changeset
|
7 typedef struct CMediaSample CMediaSample; |
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
3467
diff
changeset
|
8 struct CMediaSample |
168 | 9 { |
3056 | 10 IMediaSample_vt* vt; |
3130 | 11 DECLARE_IUNKNOWN(); |
168 | 12 IMemAllocator* all; |
13 int size; | |
14 int actual_size; | |
15 char* block; | |
1545 | 16 char* own_block; |
168 | 17 int isPreroll; |
18 int isSyncPoint; | |
3467 | 19 int isDiscontinuity; |
20 LONGLONG time_start; | |
21 LONGLONG time_end; | |
168 | 22 AM_MEDIA_TYPE media_type; |
23 int type_valid; | |
3467 | 24 void ( *SetPointer) (CMediaSample* This, char* pointer); |
3056 | 25 void ( *ResetPointer) (CMediaSample* This); // FIXME replace with Set & 0 |
1545 | 26 }; |
168 | 27 |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
3467
diff
changeset
|
28 CMediaSample* CMediaSampleCreate(IMemAllocator* allocator, int size); |
3056 | 29 // called from allocator |
30 void CMediaSample_Destroy(CMediaSample* This); | |
31 | |
26045 | 32 #endif /* MPLAYER_CMEDIASAMPLE_H */ |