This file is indexed.

/usr/include/crtmpserver/thelib/streaming/baseoutstream.h is in crtmpserver-dev 1.0~dfsg-5.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
/* 
 *  Copyright (c) 2010,
 *  Gavriloaie Eugen-Andrei (shiretu@gmail.com)
 *
 *  This file is part of crtmpserver.
 *  crtmpserver is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  crtmpserver is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with crtmpserver.  If not, see <http://www.gnu.org/licenses/>.
 */


#ifndef _BASEOUTSTREAM_H
#define	_BASEOUTSTREAM_H

#include "streaming/basestream.h"

class BaseInStream;

class DLLEXP BaseOutStream
: public BaseStream {
private:
	bool _canCallDetachedFromInStream;
protected:
	BaseInStream *_pInStream;
public:
	BaseOutStream(BaseProtocol *pProtocol, StreamsManager *pStreamsManager,
			uint64_t type, string name);
	virtual ~BaseOutStream();

	/*!
		@brief Returns the stream capabilities. Specifically, codec and codec related info
	*/
	virtual StreamCapabilities * GetCapabilities();

	/*!
		@brief The networking layer signaled the availability for sending data
	*/
	virtual void ReadyForSend();

	/*!
		@brief Links an in-stream to this stream
		@param pInStream - the in-stream where we want to attach
		@param reverseLink - if true, pInStream::Link will be called internally this is used to break the infinite calls.
	*/
	virtual bool Link(BaseInStream *pInStream, bool reverseLink = true);

	/*!
		@brief Unlinks an in-stream to this stream
		@param reverseUnLink - if true, pInStream::UnLink will be called internally this is used to break the infinite calls
	*/
	virtual bool UnLink(bool reverseUnLink = true);

	/*!
		@brief Returns true if this stream is linked to an inbound stream. Otherwise, returns false
	*/
	bool IsLinked();

	/*!
		@brief Returns the feeder of this stream
	*/
	BaseInStream *GetInStream();

	/*!
		@brief  This will return information about the stream
		@param info
	*/
	virtual void GetStats(Variant &info, uint32_t namespaceId = 0);

	/*!
		@brief This will start the feeding process
		@param absoluteTimestamp - the timestamp where we want to seek before start the feeding process\
		@param length
	*/
	virtual bool Play(double absoluteTimestamp, double length);

	/*!
		@brief This will pause the feeding process
	*/
	virtual bool Pause();

	/*!
		@brief This will resume the feeding process
	*/
	virtual bool Resume();

	/*!
		@brief This will seek to the specified point in time.
		@param absoluteTimestamp
	*/
	virtual bool Seek(double absoluteTimestamp);

	/*!
		@brief This will stop the feeding process
	*/
	virtual bool Stop();

	/*!
		@brief Called after the link is complete
	*/
	virtual void SignalAttachedToInStream() = 0;

	/*!
		@brief Called after the link is broken
	*/
	virtual void SignalDetachedFromInStream() = 0;

	/*!
		@brief Called when the feeder finished the work
	*/
	virtual void SignalStreamCompleted() = 0;
};

#endif	/* _BASEOUTBOUNDSTREAM_H */