3rdparty/licenseReport: Add seperate LGPL checks
[haiku.git] / src / add-ons / media / plugins / rtsp_streamer / RTSPStreamerPlugin.cpp
blob41545abbde4c5b1239ab20484fe5e7941c73337a
2 #include "RTSPStreamerPlugin.h"
4 #include "RTSPMediaIO.h"
7 RTSPStreamer::RTSPStreamer()
12 RTSPStreamer::~RTSPStreamer()
17 status_t
18 RTSPStreamer::Sniff(const BUrl& url, BDataIO** source)
20 RTSPMediaIO* outSource = new RTSPMediaIO(url);
21 status_t ret = outSource->Open();
22 if (ret == B_OK) {
23 *source = outSource;
24 return B_OK;
26 delete outSource;
27 return ret;
31 Streamer*
32 RTSPStreamerPlugin::NewStreamer()
34 return new RTSPStreamer();
38 MediaPlugin *instantiate_plugin()
40 return new RTSPStreamerPlugin();