rtsp_streamer: Update to last codec kit API
* Fix build
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
SubDir HAIKU_TOP src add-ons media plugins rtsp_streamer ;
|
||||
|
||||
UsePrivateHeaders media shared ;
|
||||
UsePrivateHeaders [ FDirName media experimental ] ;
|
||||
|
||||
# TODO: Investigate this
|
||||
SubDirC++Flags -w ;
|
||||
|
||||
@@ -24,7 +21,7 @@ for architectureObject in [ MultiArchSubDirSetup ] {
|
||||
rtsp.cpp
|
||||
:
|
||||
[ BuildFeatureAttribute live555 : libraries ]
|
||||
be media network bnetapi shared
|
||||
be codec network bnetapi shared
|
||||
[ TargetLibstdc++ ] [ TargetLibsupc++ ]
|
||||
;
|
||||
}
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
#define LIVE555_VERBOSITY 1
|
||||
|
||||
|
||||
using namespace BCodecKit;
|
||||
|
||||
|
||||
RTSPMediaIO::RTSPMediaIO(BUrl ourUrl)
|
||||
:
|
||||
BAdapterIO(
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
|
||||
#include "rtsp.h"
|
||||
|
||||
using BCodecKit::BAdapterIO;
|
||||
using BCodecKit::BInputAdapter;
|
||||
|
||||
class HaikuRTSPClient;
|
||||
|
||||
|
||||
@@ -8,7 +8,16 @@
|
||||
#include "RTSPMediaIO.h"
|
||||
|
||||
|
||||
B_DECLARE_CODEC_KIT_PLUGIN(
|
||||
RTSPStreamerPlugin,
|
||||
"rtsp_streamer",
|
||||
B_CODEC_KIT_PLUGIN_VERSION
|
||||
);
|
||||
|
||||
|
||||
RTSPStreamer::RTSPStreamer()
|
||||
:
|
||||
BStreamer()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -32,14 +41,8 @@ RTSPStreamer::Sniff(const BUrl& url, BDataIO** source)
|
||||
}
|
||||
|
||||
|
||||
Streamer*
|
||||
BStreamer*
|
||||
RTSPStreamerPlugin::NewStreamer()
|
||||
{
|
||||
return new RTSPStreamer();
|
||||
}
|
||||
|
||||
|
||||
MediaPlugin *instantiate_plugin()
|
||||
{
|
||||
return new RTSPStreamerPlugin();
|
||||
}
|
||||
|
||||
@@ -1,9 +1,17 @@
|
||||
/*
|
||||
* Copyright 2016-2019, Dario Casalinuovo
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _RTSP_STREAMER_PLUGIN_H
|
||||
#define _RTSP_STREAMER_PLUGIN_H
|
||||
|
||||
#include "StreamerPlugin.h"
|
||||
#include <Streamer.h>
|
||||
|
||||
class RTSPStreamer : public Streamer
|
||||
using BCodecKit::BStreamer;
|
||||
using BCodecKit::BStreamerPlugin;
|
||||
|
||||
|
||||
class RTSPStreamer : public BStreamer
|
||||
{
|
||||
public:
|
||||
RTSPStreamer();
|
||||
@@ -13,9 +21,9 @@ public:
|
||||
};
|
||||
|
||||
|
||||
class RTSPStreamerPlugin : public StreamerPlugin {
|
||||
class RTSPStreamerPlugin : public BStreamerPlugin {
|
||||
public:
|
||||
virtual Streamer* NewStreamer();
|
||||
virtual BStreamer* NewStreamer();
|
||||
};
|
||||
|
||||
#endif // _RTSP_STREAMER_PLUGIN_H
|
||||
|
||||
Reference in New Issue
Block a user