Skip to content
Snippets Groups Projects
Commit 94ac13ba authored by Lyubomir Marinov's avatar Lyubomir Marinov
Browse files

Reduces the need to maintain the bodies of two DataSource constructors in the...

Reduces the need to maintain the bodies of two DataSource constructors in the extenders of AbstractPushBufferCaptureDevice by taking into account the differences in the value of the MediaLocator locator argument.
parent af21f8ae
No related branches found
No related tags found
No related merge requests found
......@@ -131,6 +131,7 @@ protected Format setFormat(
*/
protected AbstractPushBufferCaptureDevice()
{
this(null);
}
/**
......@@ -141,7 +142,8 @@ protected AbstractPushBufferCaptureDevice()
*/
protected AbstractPushBufferCaptureDevice(MediaLocator locator)
{
setLocator(locator);
if (locator != null)
setLocator(locator);
}
/**
......
......@@ -25,6 +25,7 @@ public abstract class AbstractVideoPushBufferCaptureDevice
*/
protected AbstractVideoPushBufferCaptureDevice()
{
this(null);
}
/**
......
......@@ -110,6 +110,7 @@ public static int getFFmpegPixFmt(int dsPixFmt)
*/
public DataSource()
{
this(null);
}
/**
......
......@@ -62,6 +62,7 @@ public class DataSource
*/
public DataSource()
{
this(null);
}
/**
......
......@@ -35,6 +35,7 @@ public class DataSource
*/
public DataSource()
{
this(null);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment