disp/pipe: do removed multi source process

As stated in the commit 2ff1b2ef44, this display doesn't support/implement
this.
This commit is contained in:
Martin Pulec
2024-02-02 11:50:47 +01:00
parent a314ec79ea
commit 48edc92fef

View File

@@ -35,10 +35,8 @@
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "config_unix.h"
#include "config_win32.h"
#include <cassert>
#include <cstring>
#include <iostream>
#include <list>
#include <mutex>
@@ -67,18 +65,6 @@ struct state_pipe {
mutex audio_lock{};
};
static struct display *display_pipe_fork(void *state)
{
struct state_pipe *s = (struct state_pipe *) state;
char fmt[2 + sizeof(void *) * 2 + 1] = "";
struct display *out;
snprintf(fmt, sizeof fmt, "%p", s->delegate);
int rc = initialize_video_display(s->parent,
"pipe", fmt, 0, NULL, &out);
if (rc == 0) return out; else return NULL;
}
static void display_pipe_usage() {
cout << "Usage:\n"
"\t-d pipe:<ptr>[:codec=<c>]\n";
@@ -263,12 +249,6 @@ static bool display_pipe_get_property(void *state, int property, void *val, size
*(int *) val = DISPLAY_PROPERTY_VIDEO_SEPARATE_TILES;
*len = sizeof(int);
break;
case DISPLAY_PROPERTY_SUPPORTS_MULTI_SOURCES:
((struct multi_sources_supp_info *) val)->val = false;
((struct multi_sources_supp_info *) val)->fork_display = display_pipe_fork;
((struct multi_sources_supp_info *) val)->state = state;
*len = sizeof(struct multi_sources_supp_info);
break;
case DISPLAY_PROPERTY_AUDIO_FORMAT:
{
assert (*len >= sizeof(struct audio_desc));