cleanup gstreamer component
This commit is contained in:
parent
c703f03e50
commit
b82aed8e7f
4 changed files with 16 additions and 39 deletions
|
@ -19,5 +19,5 @@ mkdir: %_DEST%\inc%_EXT%\avmedia
|
|||
..\%__SRC%\misc\avmedia.component %_DEST%\xml%_EXT%\avmedia.component
|
||||
..\%__SRC%\misc\avmedia.jar.component %_DEST%\xml%_EXT%\avmedia.jar.component
|
||||
..\%__SRC%\misc\avmediaQuickTime.component %_DEST%\xml%_EXT%\avmediaQuickTime.component
|
||||
..\%__SRC%\misc\avmediagst.component %_DEST%\xml%_EXT%\avmediagst.component
|
||||
..\%__SRC%\misc\avmediagstreamer.component %_DEST%\xml%_EXT%\avmediagstreamer.component
|
||||
..\%__SRC%\misc\avmediawin.component %_DEST%\xml%_EXT%\avmediawin.component
|
||||
|
|
6
avmedia/source/gstreamer/avmediagstreamer.component
Normal file
6
avmedia/source/gstreamer/avmediagstreamer.component
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component loader="com.sun.star.loader.SharedLibrary" xmlns="http://openoffice.org/2010/uno-components">
|
||||
<implementation name="com.sun.star.comp.avmedia.Manager_GStreamer">
|
||||
<service name="com.sun.star.media.Manager_GStreamer"/>
|
||||
</implementation>
|
||||
</component>
|
|
@ -39,46 +39,11 @@ static uno::Reference< uno::XInterface > SAL_CALL create_MediaPlayer( const uno:
|
|||
return uno::Reference< uno::XInterface >( *new ::avmedia::gstreamer::Manager( rxFact ) );
|
||||
}
|
||||
|
||||
// ------------------------------------------
|
||||
// - component_getImplementationEnvironment -
|
||||
// ------------------------------------------
|
||||
|
||||
extern "C" void SAL_CALL component_getImplementationEnvironment( const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ )
|
||||
{
|
||||
*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
|
||||
}
|
||||
|
||||
// -----------------------
|
||||
// - component_writeInfo -
|
||||
// -----------------------
|
||||
|
||||
extern "C" sal_Bool SAL_CALL component_writeInfo( void* /*pServiceManager*/, void* pRegistryKey )
|
||||
{
|
||||
sal_Bool bRet = sal_False;
|
||||
|
||||
if( pRegistryKey )
|
||||
{
|
||||
try
|
||||
{
|
||||
uno::Reference< registry::XRegistryKey > xNewKey1(
|
||||
static_cast< registry::XRegistryKey* >( pRegistryKey )->createKey(
|
||||
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/com.sun.star.comp.media.Manager_GStreamer/UNO/SERVICES/com.sun.star.media.Manager_GStreamer" )) ) );
|
||||
|
||||
bRet = sal_True;
|
||||
}
|
||||
catch( registry::InvalidRegistryException& )
|
||||
{
|
||||
OSL_ENSURE( sal_False, "### InvalidRegistryException!" );
|
||||
}
|
||||
}
|
||||
|
||||
return bRet;
|
||||
}
|
||||
|
||||
// ------------------------
|
||||
// - component_getFactory -
|
||||
// ------------------------
|
||||
|
||||
extern "C" void* SAL_CALL component_getFactory( const sal_Char* pImplName, void* pServiceManager, void* /*pRegistryKey*/ )
|
||||
{
|
||||
uno::Reference< lang::XSingleServiceFactory > xFactory;
|
||||
|
|
|
@ -70,8 +70,14 @@ SHL1DEF=$(MISC)$/$(SHL1TARGET).def
|
|||
DEF1NAME=$(SHL1TARGET)
|
||||
DEF1EXPORTFILE=exports.dxp
|
||||
|
||||
.ENDIF
|
||||
|
||||
.ENDIF
|
||||
.ENDIF # UNX / WNT
|
||||
|
||||
.INCLUDE : target.mk
|
||||
|
||||
ALLTAR : $(MISC)/avmediagstreamer.component
|
||||
$(MISC)/avmediagstreamer.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt avmediagstreamer.component
|
||||
$(XSLTPROC) --nonet \
|
||||
--stringparam uri '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' \
|
||||
-o $@ $(SOLARENV)/bin/createcomponent.xslt avmediagstreamer.component
|
||||
|
||||
.ENDIF # ENABLE_GSTREAMER
|
||||
|
|
Loading…
Reference in a new issue