gupnp_control_point_callback_set - coredump




Dear List,

please let me ask another, maybe stupid question.
I try to use the following example script:

<?php

function device_proxy_available_cb($proxy, $arg) {
//      $info = gupnp_device_info_get($proxy);
        $type = $info['device_type'];
        $location = $info['location'];
        printf("Device available:\n");
        printf("type: %s\n", $type);
        printf("location: %s\n", $location);
}

/* Create the UPnP context */
$context = gupnp_context_new('eth0','9999');
if (!$context) {
        die("Error creating the GUPnP context\n");
}

echo "Context :" . $context . "\n";

/* We're interested in everything */
$cp = gupnp_control_point_new($context, "ssdp:all");
gupnp_control_point_callback_set($cp,GUPNP_SIGNAL_DEVICE_PROXY_AVAILABLE,'device_proxy_available_cb');

/* Start for browsing */
gupnp_control_point_browse_start($cp);
?>


If i run the PHP script, I got the following:
Context :Resource id #4
Segmentation fault (core dumped)

The core dump is initated from the line:
gupnp_control_point_callback_set($cp,GUPNP_SIGNAL_DEVICE_PROXY_AVAILABLE,'device_proxy_available_cb');

Any idea?

Helmut
--
Best Regards
Helmut Schiefer


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]