xref: /haiku/src/add-ons/media/plugins/rtsp_streamer/RTSPStreamerPlugin.cpp (revision faf79e7f783976326856422ff006b4c6ae9c3031)
1 
2 #include "RTSPStreamerPlugin.h"
3 
4 #include "RTSPMediaIO.h"
5 
6 
7 RTSPStreamer::RTSPStreamer()
8 {
9 }
10 
11 
12 RTSPStreamer::~RTSPStreamer()
13 {
14 }
15 
16 
17 status_t
18 RTSPStreamer::Sniff(const BUrl& url, BDataIO** source)
19 {
20 	RTSPMediaIO* ret = new RTSPMediaIO(url);
21 	if (ret->InitCheck() == B_OK) {
22 		*source = ret;
23 		return B_OK;
24 	}
25 	delete ret;
26 	return B_ERROR;
27 }
28 
29 
30 Streamer*
31 RTSPStreamerPlugin::NewStreamer()
32 {
33 	return new RTSPStreamer();
34 }
35 
36 
37 MediaPlugin *instantiate_plugin()
38 {
39 	return new RTSPStreamerPlugin();
40 }
41