X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_demux.h;h=2d8e1c056be8f0057fa0b8a5b9719481e4a8a0e2;hb=631a4861beef2ec7fdf7cbfbde1fd5ce10dbc5ee;hp=27909504f71cfeaf359f23b883d8ee19e4495b82;hpb=ebd800345f87349ff51971ae88c56cb439da4dcf;p=vlc diff --git a/include/vlc_demux.h b/include/vlc_demux.h index 27909504f7..2d8e1c056b 100644 --- a/include/vlc_demux.h +++ b/include/vlc_demux.h @@ -124,8 +124,14 @@ enum demux_query_e /* Attachments */ DEMUX_GET_ATTACHMENTS, /* arg1=input_attachment_t***, int* res=can fail */ + /* RECORD you should accept it only if the stream can be recorded without + * any modification or header addition. */ + DEMUX_CAN_RECORD, /* arg1=bool* res=can fail(assume false) */ + DEMUX_SET_RECORD_STATE, /* arg1=bool res=can fail */ + + /* II. Specific access_demux queries */ - DEMUX_CAN_PAUSE, /* arg1= bool* can fail (assume false)*/ + DEMUX_CAN_PAUSE = 0x1000, /* arg1= bool* can fail (assume false)*/ DEMUX_SET_PAUSE_STATE, /* arg1= bool can fail */ DEMUX_GET_PTS_DELAY, /* arg1= int64_t* cannot fail */ @@ -174,7 +180,7 @@ static inline bool demux_IsForced( demux_t *p_demux, const char *psz_name ) #define STANDARD_DEMUX_INIT_MSG( msg ) do { \ DEMUX_INIT_COMMON(); \ - msg_Dbg( p_demux, msg ); } while(0) + msg_Dbg( p_demux, "%s", msg ); } while(0) #define DEMUX_BY_EXTENSION( ext ) \ demux_t *p_demux = (demux_t *)p_this; \