<commit_before>#include <libgssdp/gssdp.h>
#include <gio/gio.h>
#include <gst/gst.h>
#include <gst/rtsp-server/rtsp-server.h>

#include <stdlib.h>

int main(int argc, char **argv)
{
#if !GLIB_CHECK_VERSION (2, 35, 0)
    g_type_init ();
#endif
    
    gst_init(&argc, &argv);

    GError *error;
    GSSDPClient *client = g_initable_new(GSSDP_TYPE_CLIENT, NULL, &error, NULL);
    if (error) {
        g_printerr("Error creating the GSSDP client: %s\n", error->message);
        g_error_free(error);
        return EXIT_FAILURE;
    }

    GSSDPResourceGroup *resource_group = gssdp_resource_group_new (client);
    gssdp_resource_group_add_resource_simple
        (resource_group,
         "upnp:rootdevice",
         "uuid:1234abcd-12ab-12ab-12ab-1234567abc12::upnp:rootdevice",
         "http://192.168.1.100/");
    gssdp_resource_group_set_available(resource_group, TRUE);

    GMainLoop *loop = g_main_loop_new(NULL, FALSE);
    GstRTSPServer *server = gst_rtsp_server_new();
    GstRTSPMountPoints *mounts = gst_rtsp_server_get_mount_points(server);

    GstRTSPMediaFactory *factory = gst_rtsp_media_factory_new();
    gst_rtsp_media_factory_set_launch(factory,
                                      "( v4l2src device=/dev/video0 ! omxh264enc "
                                      "! video/x-h264,width=720,height=480,framerate=25/1,profile=high,target-bitrate=8000000 "
                                      "! h264parse ! rtph264pay name=pay0 config-interval=1 pt=96 )");

    gst_rtsp_mount_points_add_factory(mounts, "/camera", factory);
    g_object_unref(mounts);

    gst_rtsp_server_attach(server, NULL);

    /* start serving */
    g_print("stream ready at rtsp://127.0.0.1:8554/camera\n");
    g_main_loop_run(loop);

    // done
    g_main_loop_unref(loop);
    g_object_unref(resource_group);
    g_object_unref(client);
    
    return 0;
}<commit_msg>turn off ssdp for now until i fix the build<commit_after>#include <libgssdp/gssdp.h>
#include <gio/gio.h>
#include <gst/gst.h>
#include <gst/rtsp-server/rtsp-server.h>

#include <stdlib.h>

int main(int argc, char **argv)
{
#if !GLIB_CHECK_VERSION (2, 35, 0)
    g_type_init ();
#endif
    
    gst_init(&argc, &argv);

    /*GError *error;
    GSSDPClient *client = g_initable_new(GSSDP_TYPE_CLIENT, NULL, &error, NULL);
    if (error) {
        g_printerr("Error creating the GSSDP client: %s\n", error->message);
        g_error_free(error);
        return EXIT_FAILURE;
    }

    GSSDPResourceGroup *resource_group = gssdp_resource_group_new (client);
    gssdp_resource_group_add_resource_simple
        (resource_group,
         "upnp:rootdevice",
         "uuid:1234abcd-12ab-12ab-12ab-1234567abc12::upnp:rootdevice",
         "http://192.168.1.100/");
         gssdp_resource_group_set_available(resource_group, TRUE);*/

    GMainLoop *loop = g_main_loop_new(NULL, FALSE);
    GstRTSPServer *server = gst_rtsp_server_new();
    GstRTSPMountPoints *mounts = gst_rtsp_server_get_mount_points(server);

    GstRTSPMediaFactory *factory = gst_rtsp_media_factory_new();
    gst_rtsp_media_factory_set_launch(factory,
                                      "( v4l2src device=/dev/video0 ! omxh264enc "
                                      "! video/x-h264,width=720,height=480,framerate=25/1,profile=high,target-bitrate=8000000 "
                                      "! h264parse ! rtph264pay name=pay0 config-interval=1 pt=96 )");

    gst_rtsp_mount_points_add_factory(mounts, "/camera", factory);
    g_object_unref(mounts);

    gst_rtsp_server_attach(server, NULL);

    /* start serving */
    g_print("stream ready at rtsp://127.0.0.1:8554/camera\n");
    g_main_loop_run(loop);

    // done
    g_main_loop_unref(loop);
    g_object_unref(resource_group);
    g_object_unref(client);
    
    return 0;
}
{'fraction_non_alphanumeric': 0.1202214605852887, 'fraction_numerical': 0.04165568151858687, 'mean_word_length': 3.1016216216216215, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2809131', 'n_tokens_mistral': 1496, 'n_tokens_neox': 1384, 'n_words': 203}