~ubuntu-branches/ubuntu/feisty/gst-plugins-good0.10/feisty-security

« back to all changes in this revision

Viewing changes to gst/rtsp/test.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-12-21 21:12:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20061221211215-3uukkusokhe0nk4f
Tags: 0.10.5-0ubuntu1
* Sync with pkg-gstreamer SVN:
  + debian/rules:
    - Use Ubuntu as distribution name and point to the proper Launchpad URL
  + debian/patches/01_esdsink-priority.patch:
    - Mark the esdsink with rank primary-2 to get
      pulse > alsadmix > esd > alsa > oss

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
  g_print ("  url port: %d\n", url->port);
48
48
  g_print ("  url path: %s\n", url->abspath);
49
49
 
 
50
  /* create and open connection */
 
51
  g_print ("creating connection...\n");
 
52
  res = rtsp_connection_create (url, &conn);
 
53
  if (res != RTSP_OK) {
 
54
    g_print ("error creating connection to \"%s\"\n", urlstr);
 
55
    return (-1);
 
56
  }
 
57
 
50
58
  /* open connection */
51
59
  g_print ("opening connection...\n");
52
 
  res = rtsp_connection_open (url, &conn);
 
60
  res = rtsp_connection_connect (conn);
53
61
  if (res != RTSP_OK) {
54
62
    g_print ("error opening connection to \"%s\"\n", urlstr);
55
63
    return (-1);
57
65
 
58
66
  /* do describe */
59
67
  {
60
 
    res = rtsp_message_init_request (RTSP_DESCRIBE, urlstr, &request);
 
68
    res = rtsp_message_init_request (&request, RTSP_DESCRIBE, urlstr);
61
69
    if (res != RTSP_OK) {
62
70
      g_print ("error creating request\n");
63
71
      return (-1);
110
118
      setup_url = g_strdup_printf ("%s/%s", urlstr, control_url);
111
119
 
112
120
      g_print ("setup %s\n", setup_url);
113
 
      res = rtsp_message_init_request (RTSP_SETUP, setup_url, &request);
 
121
      res = rtsp_message_init_request (&request, RTSP_SETUP, setup_url);
114
122
      if (res != RTSP_OK) {
115
123
        g_print ("error creating request\n");
116
124
        return (-1);
137
145
  }
138
146
  /* do play */
139
147
  {
140
 
    res = rtsp_message_init_request (RTSP_PLAY, urlstr, &request);
 
148
    res = rtsp_message_init_request (&request, RTSP_PLAY, urlstr);
141
149
    if (res != RTSP_OK) {
142
150
      g_print ("error creating request\n");
143
151
      return (-1);